File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ Key elements:
4444
4545``` fish
4646function try
47- set -l out (/path/to/try exec --path '/default/tries/path' $argv 2>/dev/tty)
48- if test $status -eq 0
47+ set -l out (/path/to/try exec --path '/default/tries/path' $argv 2>/dev/tty | string collect )
48+ if test $pipestatus[1] -eq 0
4949 eval $out
5050 else
5151 echo $out
Original file line number Diff line number Diff line change @@ -1015,7 +1015,7 @@ def cmd_init!(args, tries_path)
10151015 fish_script = <<~SHELL
10161016 function try
10171017 set -l out (/usr/bin/env ruby '#{ script_path } ' exec#{ path_arg } $argv 2>/dev/tty | string collect)
1018- if test $status -eq 0
1018+ if test $pipestatus[1] -eq 0
10191019 eval $out
10201020 else
10211021 echo $out
You can’t perform that action at this time.
0 commit comments