Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ~ substitution
- X-seq: zsh-users 15700
- From: Atom Smasher <atom@xxxxxxxxxxx>
- To: sergio <mailbox@xxxxxxxxxxxxx>
- Subject: Re: ~ substitution
- Date: Sat, 8 Jan 2011 23:44:29 +1300 (NZDT)
- Cc: zsh-users@xxxxxxx
- In-reply-to: <4D28316E.7060106@xxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Openpgp: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt
- References: <4D28316E.7060106@xxxxxxxxxxxxx>
On Sat, 8 Jan 2011, sergio wrote:
But when I type 'echo h=~' (or h=~sergio, or h=~/some/path) I get 'h=~'.
sh does the same, and bash will out 'h=/home/sergio'.
How to control this? Why this may be bad? May be this is a bug?
======================
echo foo=${:-~}
foo=/home/atom
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"It may be true that the law cannot make a man love me,
but it can keep him from lynching me,
and I think that's pretty important."
-- Martin Luther King, Jr.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author