[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Is the actionable variable in a case statement POSIXly i
From: |
Chet Ramey |
Subject: |
Re: [Help-bash] Is the actionable variable in a case statement POSIXly immune to word splitting? |
Date: |
Mon, 23 Dec 2013 21:34:55 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 12/23/13, 9:14 PM, Chris Down wrote:
> 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.
Yes: "the string resulting from the tilde expansion, parameter expansion,
command substitution, arithmetic expansion, and quote removal of the given
word"
where `word' is what you're calling the actionable variable.
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_04_05
- --
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlK48sYACgkQu1hp8GTqdKs8zQCgiQE7iSBAMsvGpVa6GRBFytA5
QAoAn2gsvJQ2ETmQOH+NddMioGBonUIu
=eSfr
-----END PGP SIGNATURE-----