Aaron Davies
2015-10-20 02:07:18 UTC
it looks like .sh.match isn't set by a match in the test of a case statement
is this expected?
set -eu
print "${.sh.version}"
a=foo
[[ $a =~ f(.)o ]]
typeset -p .sh.match
b=bar
case $b in ~(E)b(.)r) typeset -p .sh.match;; esac
typeset -a .sh.match=(foo o)
typeset -a .sh.match=(foo o)
is this expected?
cat ./a.sh
#!/usr/bin/env kshset -eu
print "${.sh.version}"
a=foo
[[ $a =~ f(.)o ]]
typeset -p .sh.match
b=bar
case $b in ~(E)b(.)r) typeset -p .sh.match;; esac
./a.sh
Version AJM 93u+ 2012-08-01typeset -a .sh.match=(foo o)
typeset -a .sh.match=(foo o)
--
Aaron Davies
***@gmail.com
Aaron Davies
***@gmail.com