vim-patch:1f6faff: runtime(doc): mention the "pipefail" shell option (#35016)

related: vim/vim#17787

1f6faff912

Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2025-07-21 07:54:31 +08:00
committed by GitHub
parent 2795df7aac
commit 8ee82da3cf
3 changed files with 9 additions and 0 deletions

View File

@@ -5557,6 +5557,9 @@ A jump table for the options with a short description can be found at |Q_op|.
Don't forget to precede the space with a backslash: ":set sp=\ ". Don't forget to precede the space with a backslash: ":set sp=\ ".
In the future pipes may be used for filtering and this option will In the future pipes may be used for filtering and this option will
become obsolete (at least for Unix). become obsolete (at least for Unix).
Note: When using a pipe like "| tee", you'll lose the exit code of the
shell command. This might be configurable by your shell, look for
the pipefail option (for bash and zsh, use ":set -o pipefail").
This option cannot be set from a |modeline| or in the |sandbox|, for This option cannot be set from a |modeline| or in the |sandbox|, for
security reasons. security reasons.

View File

@@ -5859,6 +5859,9 @@ vim.go.shcf = vim.go.shellcmdflag
--- Don't forget to precede the space with a backslash: ":set sp=\ ". --- Don't forget to precede the space with a backslash: ":set sp=\ ".
--- In the future pipes may be used for filtering and this option will --- In the future pipes may be used for filtering and this option will
--- become obsolete (at least for Unix). --- become obsolete (at least for Unix).
--- Note: When using a pipe like "| tee", you'll lose the exit code of the
--- shell command. This might be configurable by your shell, look for
--- the pipefail option (for bash and zsh, use ":set -o pipefail").
--- This option cannot be set from a `modeline` or in the `sandbox`, for --- This option cannot be set from a `modeline` or in the `sandbox`, for
--- security reasons. --- security reasons.
--- ---

View File

@@ -7687,6 +7687,9 @@ local options = {
Don't forget to precede the space with a backslash: ":set sp=\ ". Don't forget to precede the space with a backslash: ":set sp=\ ".
In the future pipes may be used for filtering and this option will In the future pipes may be used for filtering and this option will
become obsolete (at least for Unix). become obsolete (at least for Unix).
Note: When using a pipe like "| tee", you'll lose the exit code of the
shell command. This might be configurable by your shell, look for
the pipefail option (for bash and zsh, use ":set -o pipefail").
This option cannot be set from a |modeline| or in the |sandbox|, for This option cannot be set from a |modeline| or in the |sandbox|, for
security reasons. security reasons.
]=], ]=],