I run the following command unsuccessfully
dir
and I get
zsh: correct 'dir' to 'gdir' [nyae]?
What does [nyae] mean in Zsh?
-
The n and y stand for no and yes.
I don't remember the other two offhand, they might be "always" and "exit", but the "a" may stand for abort.
You just type the corresponding initial.
zshell has a correction mechanism, so it will sometimes ask you about correcting things before doing so for you.
-
zsh
has a powerful correction mechanism. If you type a command in the wrong way it suggests corrections. What happend here is thatdir
is an unknown command andzsh
suggestsgdir
, while maybels
was what you wanted.- If you want to execute
gdir
hity
(yes) - If you want to try to execute
dir
anyway hitn
(no) - If you want to execute completely different spelt command like
ls
hita
(abort) and type your command - If you want to execute a similar spelt commant like
udir
hite
(edit) and edit your command.
Masi : Thank you for explanations! - If you want to execute
-
From "An Introduction to the Z Shell"
If you press y when the shell asks you if you want to correct a word, it will be corrected. If you press n, it will be left alone. Pressing a aborts the command, and pressing e brings the line up for editing again, in case you agree the word is spelled wrong but you don’t like the correction
Masi : Thank you for the link!
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.