mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 10:01:14 -03:00
set error code on failed command substitution to 255 instead of -1
the exit status ought to be in 0-255, e.g. exit -1
This commit is contained in:
@@ -1,2 +1,8 @@
|
||||
#RUN: %fish -c "echo 1.2.3.4."
|
||||
#RUN: %fish -C 'set -l fish %fish' %s
|
||||
|
||||
$fish -c "echo 1.2.3.4."
|
||||
# CHECK: 1.2.3.4.
|
||||
|
||||
PATH= $fish -c "echo (command a)" 2>/dev/null
|
||||
echo $status
|
||||
# CHECK: 255
|
||||
|
||||
Reference in New Issue
Block a user