fzf/shell
Christoph Anton Mitterer 7e89458a3b
[fish] exit as well when called from non-interactive shell (#3467)
Just like with the other shells, exit fish to, if called from a non-interactive
shell.

We cannot use `return`, as older versions of fish (namely < 3.4.0) did not
support to use `return` in `.`-scripts (this was only added with fish commit
3359e5d2e9bcbf19d1652636c8e448a6889302ae).

Unlike in POSIX, fish’s `exit` is however documented to no cause the calling
shell to exit when executed in a sourced script (see:
0f70b2c0d3/doc_src/cmds/exit.rst (L20)
)

Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2023-10-13 01:06:55 +09:00
..
completion.bash [bash] Remove implicit bash-completion dependency 2023-10-13 01:00:43 +09:00
completion.zsh [shell] make __fzf_list_hosts() definable by the user 2023-10-12 20:44:25 +09:00
key-bindings.bash [bash] Use command to “protect” further commands (#3462) 2023-10-11 13:07:47 +09:00
key-bindings.fish [fish] exit as well when called from non-interactive shell (#3467) 2023-10-13 01:06:55 +09:00
key-bindings.zsh Improve interactiveness checks (#3449) 2023-10-09 01:19:28 +09:00