diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2010-12-14 09:59:04 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2010-12-14 09:59:04 +0000 |
commit | eab4f9a83c74b104bcfa81d574d5f8f8a7a85ad3 (patch) | |
tree | 90ce69fc60a966b5d31ad4700cbd84a72b3c2bed /Doc/Zsh | |
parent | 5858e79f4d942ab13414f5efaf6f280bac690060 (diff) | |
download | zsh-eab4f9a83c74b104bcfa81d574d5f8f8a7a85ad3.tar.gz zsh-eab4f9a83c74b104bcfa81d574d5f8f8a7a85ad3.tar.xz zsh-eab4f9a83c74b104bcfa81d574d5f8f8a7a85ad3.zip |
28528: Rearrange zleparse to lexflags
Add (z+n+)
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/expn.yo | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo index 5768b82df..cf8aee65f 100644 --- a/Doc/Zsh/expn.yo +++ b/Doc/Zsh/expn.yo @@ -1009,14 +1009,17 @@ find the words, i.e. taking into account any quoting in the value. Comments are not treated specially but as ordinary strings, similar to interactive shells with the tt(INTERACTIVE_COMMENTS) option unset. -The flag can take option letters between a following pair of -`tt(PLUS())' characters. tt(LPAR()z+PLUS()c+PLUS()RPAR()) causes -comments to be parsed as a string and retained; any field in the +The flag can take a combination of option letters between a following +pair of `tt(PLUS())' characters. tt(LPAR()z+PLUS()c+PLUS()RPAR()) +causes comments to be parsed as a string and retained; any field in the resulting array beginning with an unquoted comment character is a comment. tt(LPAR()z+PLUS()C+PLUS()RPAR()) causes comments to be parsed and removed. The rule for comments is standard: anything between a word starting with the third charcter of tt($HISTCHARS), default tt(#), up to -the next newline is a comment. +the next newline is a comment. tt(LPAR()z+PLUS()n+PLUS()RPAR()) causes +unquoted newlines to be treated as ordinary whitespace, else they are +treated as if they are shell code delimiters and converted to +semicolons. Note that this is done very late, as for the `tt((s))' flag. So to access single words in the result, one has to use nested expansions as |