On Thu, Sep 17, 2009 at 23:20, Isaac Dupree
<[email protected]>wrote:
> Look, here is how it works in fish:
>
> ..> set foo ~/hi
> ..> echo $foo
> /home/me/hi
> ..> set foo "~/hi"
> ..> echo $foo
> ~/hi
>
> Perhaps you were confused by quoting?
>
> That's how it works in bash too.
Tilde expansion is done by the shell before executing commands (including
commands to set a variable).
Programs were not supposed to be aware of it at all. They are supposed to
get expanded paths that can be directly used in system calls.
With time, users grew used to the convenience, and expected ~ to work in
other contexts, e.g. GUI, config files and envvars.
So nowdays many programs will perform the expansion themselves. But it's
not generally guaranteed to work.
Some esoteric shell constructs also might end up doing the expansion again.
Ken, if you can show us the exact commands that you used (bash and/or fish),
we'll try to help more concretely.
--
Beni <[email protected]>
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users