From a0649edc1e91be90629e42ce513854c2a638dd30 Mon Sep 17 00:00:00 2001 From: step Date: Mon, 1 Feb 2021 12:07:42 +0100 Subject: [PATCH] [man] Clarify that $SHELL is used to run commands (#2334) SHELL is used for execute actions and the preview and default commands. --- man/man1/fzf.1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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