[Help-bash] Is the actionable variable in a case statement POSIXly immun
From:
Chris Down
Subject:
[Help-bash] Is the actionable variable in a case statement POSIXly immune to word splitting?
Date:
Tue, 24 Dec 2013 10:14:48 +0800
User-agent:
Mutt/1.5.22 (2013-10-16)
Is the actionable variable in a case statement POSIXly immune to word
splitting? I looked at the POSIX spec and didn't see anything about it,
but it's quite possible that I just missed it in the rest of the text.
All shells that I've tested (bash, zsh, mksh, dash) seem to behave this
way.
$ pacman -Q dash
dash 0.5.7-4
$ line='foo bar'
$ case $line in
> *) echo "$line"
> esac
foo bar