blob: d0c3599272506d33a24507845664d57a309dafef [file] [log] [blame]
# Case argument is globbed, match patterns are not.
# This caught some bugs in the past.
case z in
\z ) echo ok1 ;;
* ) echo BUG ;;
esac
case \z in
z ) echo ok2 ;;
* ) echo BUG ;;
esac
case \z in
\z ) echo ok3 ;;
* ) echo BUG ;;
esac
case z in
\z ) echo ok4 ;;
* ) echo BUG ;;
esac
case \\z in
\\z ) echo ok5 ;;
* ) echo BUG ;;
esac
echo Ok:$?
case "\z" in
"\z" ) echo ok6 ;;
* ) echo BUG ;;
esac
case "\\z" in
"\\z" ) echo ok7 ;;
* ) echo BUG ;;
esac
case "\\\z" in
"\\\z") echo ok8 ;;
* ) echo BUG ;;
esac
echo Ok:$?