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

Re: ~ substitution



On 8 January 2011 10:42, sergio <mailbox@xxxxxxxxxxxxx> wrote:
> Hello.
>
> Is it possible, to control ~ substitution?
> When I type 'echo ~' I get '/home/sergio' --- all right.
> When I type 'echo a~b' I get 'a~b' --- all right.
> Also sh and bash do the same.
>
> 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?

try setopt magicequalsubst

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author