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

Re: [bug] backslash stripped in sh/ksh emulation



On Tue, Oct 11, 2005 at 09:38:42AM +0100, Stephane Chazelas wrote:
> Hi guys,
> 
> $ ARGV0=ksh zsh -xc 'a="\\*"; case $a in *\\*) echo a;; esac'
> + a='\*'
> + case * (*\*)
[...]

Same problem with:

~$ zsh -c 'setopt globsubst; a="\\\\\\$"; b=${a#?}; print -r "$a" "$b"'
\\\$ \$
~$ zsh -c 'setopt globsubst; a="\\\\\\$"; b="${a#?}"; print -r "$a" "$b"'
\\\$ \\$

best regards,
Stéphane



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