bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No tilde expansion right after a quotation


From: Chet Ramey
Subject: Re: No tilde expansion right after a quotation
Date: Sun, 15 Feb 2009 16:41:01 -0500
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)

Angel Tsankov wrote:
> Hi,
> 
> Using bash 3.2.48(1)-release, echo ""~root  prints ~root instead of /root. 
> Is this the expected behaviour?

Yes.  The tilde is not the first character in the word.  Portions of
words to be tilde-expanded can't be quoted at all, either.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]