diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2024-05-06 12:07:51 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2024-05-06 13:46:06 +0900 |
commit | 5669f48343cac868eb7432950db61c9aa2383ab6 (patch) | |
tree | 2e6f2e9de27cc75a4802591e87b4ecc54116dcc9 /man | |
parent | 24ff66d4a9d6889988e4d7e373f33f4098870b9e (diff) |
Do not enable delayed expansion mode when running cmd.exe
And simplify the argument escaping code. Fix #3764.
This may breaks some existing use cases, but the mode causes too much
trouble when escaping arguments and it makes some things not possible.
# Now you can pass special characters to rg process without any escaping problems: &|<>()@^%!
fzf --ansi --disabled --bind "change:reload:rg --column --line-number --no-heading --color=always --smart-case -- {q}"
# No sudden expansion of the arguments on '!'
fzf --disabled --preview "echo {q} {n} {}" --query "&|<>()@^%!" --prompt "&|<>()@^%!"
Diffstat (limited to 'man')
-rw-r--r-- | man/man1/fzf.1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1 index 50357030..323d3ead 100644 --- a/man/man1/fzf.1 +++ b/man/man1/fzf.1 @@ -821,7 +821,7 @@ e.g. \fBfzf --multi | fzf --sync\fR .B "--with-shell=STR" Shell command and flags to start child processes with. On *nix Systems, the default value is \fB$SHELL -c\fR if \fB$SHELL\fR is set, otherwise \fBsh -c\fR. -On Windows, the default value is \fBcmd /v:on/s/c\fR when \fB$SHELL\fR is not +On Windows, the default value is \fBcmd /s/c\fR when \fB$SHELL\fR is not set. .RS |