Re: another case from the case corner case casualty case files

2017-04-08 Thread Chet Ramey
On 4/2/17 8:34 PM, Martijn Dekker wrote: > $ x=$'\\a\\b\\c\\\001\\d\\e\\f' > $ case $'abc\001def' in $x) echo ok ;; *) echo oops; esac > oops > $ x=$'\\a\\b\\c\\\002\\d\\e\\f' > $ case $'abc\002def' in $x) echo ok ;; *) echo oops; esac > ok Thanks for the report. This is another one that was tric

Re: another case from the case corner case casualty case files

2017-04-03 Thread Chet Ramey
On 4/2/17 8:34 PM, Martijn Dekker wrote: > $ x=$'\\a\\b\\c\\\001\\d\\e\\f' > $ case $'abc\001def' in $x) echo ok ;; *) echo oops; esac > oops > $ x=$'\\a\\b\\c\\\002\\d\\e\\f' > $ case $'abc\002def' in $x) echo ok ;; *) echo oops; esac > ok > > 'case' can't match an escaped $'\001' character passe

another case from the case corner case casualty case files

2017-04-02 Thread Martijn Dekker
$ x=$'\\a\\b\\c\\\001\\d\\e\\f' $ case $'abc\001def' in $x) echo ok ;; *) echo oops; esac oops $ x=$'\\a\\b\\c\\\002\\d\\e\\f' $ case $'abc\002def' in $x) echo ok ;; *) echo oops; esac ok 'case' can't match an escaped $'\001' character passed from a variable. Any other character from $'\002' up wo