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

[bug] backslash stripped in sh/ksh emulation



Hi guys,

$ ARGV0=ksh zsh -xc 'a="\\*"; case $a in *\\*) echo a;; esac'
+ a='\*'
+ case * (*\*)

Can anyone explain it? It's OK if $a is quoted as in <case "$a">

After investigation, it appears it is triggered by globsubst.

Best regards,
Stéphane



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