[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: |
Chris Down |
Subject: |
Re: [Help-bash] Is the actionable variable in a case statement POSIXly immune to word splitting? |
Date: |
Tue, 24 Dec 2013 10:39:36 +0800 |
User-agent: |
Mutt/1.5.22 (2013-10-16) |
On 2013-12-23 21:34:55 -0500, Chet Ramey wrote:
> 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
Thanks, Chet. Somehow I missed that.
pgpNKtGxZl8vA.pgp
Description: PGP signature