shell: update psubst testcases

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2021-07-27 04:20:32 +02:00
parent 8dd676c6c3
commit c450437a4e
8 changed files with 53 additions and 6 deletions

View File

@@ -22,6 +22,3 @@ hush: can't open '/does/not/exist': No such file or directory
1
hush: can't open '/does/not/exist': No such file or directory
1
hush: can't open '/does/not/exist': No such file or directory
1
Done: a=b

View File

@@ -17,6 +17,3 @@ true; a=`exit 2` >/does/not/exist; echo $?
false; a=`exit 2` >/does/not/exist; echo $?
true; a=$(exit 2) >/does/not/exist; echo $?
false; a=$(exit 2) >/does/not/exist; echo $?
# ...and assignment still happens despite redirect error:
true; a=$(echo b) >/does/not/exist; echo $?
echo "Done: a=$a"

View File

@@ -0,0 +1,3 @@
hush: can't open '/does/not/exist': No such file or directory
1
Done: a=b

View File

@@ -0,0 +1,3 @@
# assignment still happens despite redirect error
true; a=$(echo b) >/does/not/exist; echo $?
echo "Done: a=$a"