mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 19:41:15 -03:00
Update psub for the new --inherit-variable flag
Also do some minor formatting cleanup, make psub return 1 when executed outside of a command substitution, and make it respect $TMPDIR.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# vim: set filetype=fish:
|
||||
# ensure that builtins that produce no output can still truncate files
|
||||
# (bug PCA almost reintroduced!)
|
||||
echo "Testing that builtins can truncate files"
|
||||
@@ -89,4 +90,11 @@ cat (echo foo | psub)
|
||||
cat (echo bar | psub)
|
||||
cat (echo baz | psub)
|
||||
|
||||
set -l filename (echo foo | psub)
|
||||
if test -e $filename
|
||||
echo 'psub file was not deleted'
|
||||
else
|
||||
echo 'psub file was deleted'
|
||||
end
|
||||
|
||||
false
|
||||
|
||||
Reference in New Issue
Block a user