2017-08-04 04:25:20 +00:00
|
|
|
|
|
|
|
####################
|
2017-10-10 06:34:50 +00:00
|
|
|
# Read with no vars is not an error
|
2017-08-04 04:25:20 +00:00
|
|
|
|
|
|
|
####################
|
2017-07-20 03:22:34 +00:00
|
|
|
# Read with -a and anything other than exactly on var name is an error
|
|
|
|
read: Expected 1 args, got 0
|
|
|
|
read: Expected 1 args, got 2
|
2017-08-04 04:25:20 +00:00
|
|
|
|
2017-08-09 18:11:58 +00:00
|
|
|
####################
|
|
|
|
# Verify correct behavior of subcommands and splitting of input.
|
|
|
|
|
2017-08-04 04:25:20 +00:00
|
|
|
####################
|
|
|
|
# Test splitting input
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Test splitting input with IFS empty
|
|
|
|
|
2017-08-04 19:04:32 +00:00
|
|
|
####################
|
|
|
|
# read -n tests
|
|
|
|
|
|
|
|
####################
|
|
|
|
# read -z tests
|
|
|
|
|
2017-08-04 04:25:20 +00:00
|
|
|
####################
|
|
|
|
# Chunked read tests
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Confirm reading non-interactively works -- #4206 regression
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Test --delimiter (and $IFS, for now)
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Delimiter =
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Delimiter empty
|
|
|
|
|
|
|
|
####################
|
|
|
|
# IFS empty string
|
|
|
|
|
|
|
|
####################
|
|
|
|
# IFS unset
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Delimiter =
|