[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] handling variables with tilde character
From: |
Chet Ramey |
Subject: |
Re: [Help-bash] handling variables with tilde character |
Date: |
Tue, 03 Jul 2012 15:59:51 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 |
On 7/3/12 3:48 PM, address@hidden wrote:
> Hello,
>
> i'm experiencing some strange bash behaviour with tilde char in front of
> variables.
Tilde expansion of variables doesn't work. The characters between the
tilde and the slash or end of the string are treated as a username. If
you want to use variables with tilde expansion, you have to tinker with
`eval'.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/