Zsh Mailing List Archive
Messages sorted by:
[doc] "sh_word_split nothing to do with word splitting"?
- X-seq: zsh-workers 42445
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: [doc] "sh_word_split nothing to do with word splitting"?
- Date: Sun, 11 Mar 2018 09:44:58 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-disposition:user-agent; bh=ZR+Pd4mfqc/MpTNAizhPNWnrTtq3+RQ7R8E0WfQPg+E=; b=Kbv6pf1Mjd394RynYJi6oitvxIt0t/xifTdkXhC7QvmlQqCht36R1KKTPFq42sNPH0 WAO3exPdORvP1bG93KDu3moGVYFGwQe4xnPjXwiHGxVrrrEzaXFHtPQXut2VQCJ3XhyG v810JxWyz6tEPmv/yG5jKmsRUZBP4+QygHPKX8mak3LB4ouwhsl+shYIjlBJSEkWZJMW Pr33Fa6oLGKC5uKI+eHVRe7+vH/yeDz4kdcSTeHgnGjYcuHnDZE6aKt3wNtu5x8KzHb7 zaGo6SZdMso5OHOKMLVv7vlgRFuCk4Zo3w5Fy9NO2cO10EzyfjhFipvZtIBmZnHJ2EYZ 8Z7A==
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:email@example.com>
- List-unsubscribe: <mailto:firstname.lastname@example.org>
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
SH_WORD_SPLIT (-y) <K> <S>
Causes field splitting to be performed on unquoted parameter
expansions. Note that this option has nothing to do with word
splitting. (See *note Parameter Expansion::.)
Perform word splitting using the rules for SH_WORD_SPLIT during the
evaluation of SPEC, but regardless of whether the parameter appears
in double quotes; if the '=' is doubled, turn it off. This forces
parameter expansions to be split into separate words before
substitution, using IFS as a delimiter. This is done by default in
most other shells.
Note that splitting is applied to WORD in the assignment forms of
SPEC _before_ the assignment to NAME is performed. This affects
the result of array assignments with the A flag.
It's unclear to me what is meant by "Note that this option has
nothing to do with word splitting" here.
It seems the SH_WORD_SPLIT description makes a distinction
between "field splitting" and "word splitting", but then again
throughout the manual (including the $=spec description above),
"word splitting" and "field splitting" are used interchangeably
to refer to the same thing.
Was the intended meaning something like: "Note that it does not
affect how the shell delimits tokens" or something like that?
Messages sorted by: