mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Check $pipestatus for zsh as well
This commit is contained in:
@@ -338,7 +338,7 @@ esac
|
|||||||
# We need to pass the first argument to the executed program with a leading -
|
# We need to pass the first argument to the executed program with a leading -
|
||||||
# to make sure the shell executes as a login shell. Note that not all shells
|
# to make sure the shell executes as a login shell. Note that not all shells
|
||||||
# support exec -a so we use the below to try to detect such shells
|
# support exec -a so we use the below to try to detect such shells
|
||||||
if [ -z "$PIPESTATUS" ]; then
|
if [ -z "$PIPESTATUS$pipestatus" ]; then
|
||||||
# the dash shell does not support exec -a and also does not define PIPESTATUS
|
# the dash shell does not support exec -a and also does not define PIPESTATUS
|
||||||
execute_with_python
|
execute_with_python
|
||||||
exec $login_shell "-l"
|
exec $login_shell "-l"
|
||||||
|
|||||||
Reference in New Issue
Block a user