patch 9.0.0783: ":!" doesn't do anything but does update the previous command

Problem:    ":!" doesn't do anything but does update the previous command.
Solution:   Do not have ":!" change the previous command. (Martin Tournoij,
            closes #11372)
This commit is contained in:
Bram Moolenaar
2022-10-17 18:00:23 +01:00
parent 4bf67ec52e
commit 8107a2a8af
5 changed files with 41 additions and 1 deletions

View File

@ -249,7 +249,8 @@ g8 Print the hex values of the bytes used in the
*:!cmd* *:!*
:!{cmd} Execute {cmd} with the shell. See also the 'shell'
and 'shelltype' option.
and 'shelltype' option. `:!` without a {cmd} is a no-op,
it does nothing.
*E34*
Any '!' in {cmd} is replaced with the previous
external command (see also 'cpoptions'). But not when