summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstep <step-@users.noreply.github.com>2021-02-01 12:07:42 +0100
committerGitHub <noreply@github.com>2021-02-01 20:07:42 +0900
commita0649edc1e91be90629e42ce513854c2a638dd30 (patch)
treee751ce1aa410a363b2f306c22498367b6aad99d9
parent0e0bcb3e10c92a97973dc53d2c7a8baeb98d919f (diff)
[man] Clarify that $SHELL is used to run commands (#2334)
SHELL is used for execute actions and the preview and default commands.
-rw-r--r--man/man1/fzf.17
1 files changed, 6 insertions, 1 deletions
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1
index 9d15a3ad..24558827 100644
--- a/man/man1/fzf.1
+++ b/man/man1/fzf.1
@@ -570,7 +570,8 @@ Note that most options have the opposite versions with \fB--no-\fR prefix.
.TP
.B FZF_DEFAULT_COMMAND
Default command to use when input is tty. On *nix systems, fzf runs the command
-with \fBsh -c\fR, so make sure that it's POSIX-compliant.
+with \fB$SHELL -c\fR if \fBSHELL\fR is set, otherwise with \fBsh -c\fR, so in
+this case make sure that the command is POSIX-compliant.
.TP
.B FZF_DEFAULT_OPTS
Default options. e.g. \fBexport FZF_DEFAULT_OPTS="--extended --cycle"\fR
@@ -890,6 +891,10 @@ executes the command without the switching. Note that fzf will not be
responsive until the command is complete. For asynchronous execution, start
your command as a background process (i.e. appending \fB&\fR).
+On *nix systems, fzf runs the command with \fB$SHELL -c\fR if \fBSHELL\fR is
+set, otherwise with \fBsh -c\fR, so in this case make sure that the command is
+POSIX-compliant.
+
.SS RELOAD INPUT
\fBreload(...)\fR action is used to dynamically update the input list