Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [bug] backslash stripped in sh/ksh emulation
- X-seq: zsh-workers 21861
- From: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: Re: [bug] backslash stripped in sh/ksh emulation
- Date: Tue, 11 Oct 2005 09:53:32 +0100
- In-reply-to: <20051011083842.GA5380@sc>
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20051011083842.GA5380@sc>
- Sender: Stephane Chazelas <stephane_chazelas@xxxxxxxx>
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