1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-31 23:31:03 +02:00

52753: Clarify "nocorrect" when introducing precommand modifiers.

This commit is contained in:
Bart Schaefer 2024-03-13 21:10:23 -07:00
parent d1e041188d
commit 21fe2dce44
2 changed files with 9 additions and 6 deletions

View file

@ -1,5 +1,8 @@
2024-03-13 Bart Schaefer <schaefer@zsh.org> 2024-03-13 Bart Schaefer <schaefer@zsh.org>
* 52753: Doc/Zsh/grammar.yo: Clarify "nocorrect" when introducing
precommand modifiers.
* unposted: Doc/Zsh/contrib.yo: update doc for "colors" to match * unposted: Doc/Zsh/contrib.yo: update doc for "colors" to match
workers/47489,50212 (italic and bright) workers/47489,50212 (italic and bright)

View file

@ -100,14 +100,15 @@ More generally, a list can be seen as a set of any shell commands
whatsoever, including the complex commands below; this is implied wherever whatsoever, including the complex commands below; this is implied wherever
the word `list' appears in later descriptions. For example, the commands the word `list' appears in later descriptions. For example, the commands
in a shell function form a special sort of list. in a shell function form a special sort of list.
texinode(Precommand Modifiers)(Complex Commands)(Simple Commands & Pipelines)(Shell Grammar) texinode(Precommand Modifiers)(Complex Commands)(Simple Commands & Pipelines)(Shell Grammar)
sect(Precommand Modifiers) sect(Precommand Modifiers)
cindex(precommand modifiers) cindex(precommand modifiers)
cindex(modifiers, precommand) cindex(modifiers, precommand)
A simple command may be preceded by a em(precommand modifier), With the exception of tt(nocorrect), which is a reserved word that
which will alter how the command is interpreted. These modifiers are affects further parsing when it is found in command position, each
shell builtin commands with the exception of tt(nocorrect) which is of the following builtin commands is a em(precommand modifier) which
a reserved word. may precede a simple command to alter how that command is interpreted.
startitem() startitem()
findex(-) findex(-)
@ -158,8 +159,7 @@ before any parsing is done. It has no effect in non-interactive shells.
) )
findex(noglob) findex(noglob)
item(tt(noglob))( item(tt(noglob))(
Filename generation (globbing) is not performed on any of Filename generation (globbing) is not performed on any of the words.
the words.
) )
enditem() enditem()
texinode(Complex Commands)(Alternate Forms For Complex Commands)(Precommand Modifiers)(Shell Grammar) texinode(Complex Commands)(Alternate Forms For Complex Commands)(Precommand Modifiers)(Shell Grammar)