about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorJoey Pabalinas <joeypabalinas@gmail.com>2018-12-17 00:54:24 -1000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2018-12-17 12:02:43 +0000
commit552ebe6082407b2cd3b9c9434394bad46fc59154 (patch)
tree90521d07b75f19b9769768dd59bd0fd221d01d54 /Completion
parente64bd2ad4c8740477a6fad6ca692b42da9e64f36 (diff)
downloadzsh-552ebe6082407b2cd3b9c9434394bad46fc59154.tar.gz
zsh-552ebe6082407b2cd3b9c9434394bad46fc59154.tar.xz
zsh-552ebe6082407b2cd3b9c9434394bad46fc59154.zip
43904 (plus tweak): zshmisc(1): document term being optional if `in word' is omitted
In code such as:

> hobbes% () { for arg do print -r $arg; done; } 1 2 3
> 1
> 2
> 3

the implicit positional parameters added when the `in word ...'
list is omitted also implicitly append the separator term, making
the above code valid, albeit seemingly violating the syntax listed
in the documentation.

This is related to the various forms of alternative syntax and is
the intended behavior of the parsing code, so correct the minor
contradiction in the for loop documentation.
Diffstat (limited to 'Completion')
0 files changed, 0 insertions, 0 deletions