Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: ~ substitution



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