mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 01:51:14 -03:00
Fix unit tests for read to stdout behavior
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
|
|
||||||
####################
|
####################
|
||||||
# Read with no vars is an error
|
# Read with no vars is not an error
|
||||||
read: Expected at least 1 args, got only 0
|
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# Read with -a and anything other than exactly on var name is an error
|
# Read with -a and anything other than exactly on var name is an error
|
||||||
|
|||||||
@@ -16,6 +16,11 @@ expect_prompt
|
|||||||
|
|
||||||
# read
|
# read
|
||||||
|
|
||||||
|
send_line "read"
|
||||||
|
expect_read_prompt
|
||||||
|
send_line "text"
|
||||||
|
expect_prompt
|
||||||
|
|
||||||
send_line "read foo"
|
send_line "read foo"
|
||||||
expect_read_prompt
|
expect_read_prompt
|
||||||
send_line "text"
|
send_line "text"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# Test read builtin and IFS.
|
# Test read builtin and IFS.
|
||||||
#
|
#
|
||||||
|
|
||||||
logmsg Read with no vars is an error
|
logmsg Read with no vars is not an error
|
||||||
read
|
read
|
||||||
|
|
||||||
logmsg Read with -a and anything other than exactly on var name is an error
|
logmsg Read with -a and anything other than exactly on var name is an error
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
####################
|
####################
|
||||||
# Read with no vars is an error
|
# Read with no vars is not an error
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# Read with -a and anything other than exactly on var name is an error
|
# Read with -a and anything other than exactly on var name is an error
|
||||||
|
|||||||
Reference in New Issue
Block a user