This commit is contained in:
Johannes Altmanninger 2020-02-29 10:48:19 +01:00
parent 91fcb8c42c
commit 706c1a838e

View File

@ -65,7 +65,7 @@ print_vars one two three
#CHECK: 1 'test' 1 '' 1 '' #CHECK: 1 'test' 1 '' 1 ''
echo 'foo bar baz' | read -l one two three echo 'foo bar baz' | read -l one two three
print_vars one two three print_vars one two three
#CHECK: 1 'foo' 1 'bar' 1 'baz' #CHECK: 1 'foo' 1 'bar' 1 ' baz'
echo -n 'a' | read -l one echo -n 'a' | read -l one
echo "$status $one" echo "$status $one"
#CHECK: 0 a #CHECK: 0 a
@ -323,7 +323,7 @@ begin
end end
#CHECK: a #CHECK: a
#CHECK: b #CHECK: b
#CHECK: c #CHECK: ..c
# At one point, whatever was read was printed _before_ banana # At one point, whatever was read was printed _before_ banana
echo banana (echo sausage | read) echo banana (echo sausage | read)