2017-08-03 21:25:20 -07:00
|
|
|
|
|
|
|
####################
|
2017-10-10 08:34:50 +02:00
|
|
|
# Read with no vars is not an error
|
2017-08-03 21:25:20 -07:00
|
|
|
|
|
|
|
####################
|
2017-07-19 20:22:34 -07: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-03 21:25:20 -07:00
|
|
|
|
2017-08-09 11:11:58 -07:00
|
|
|
####################
|
|
|
|
# Verify correct behavior of subcommands and splitting of input.
|
|
|
|
|
2017-08-03 21:25:20 -07:00
|
|
|
####################
|
|
|
|
# Test splitting input
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Test splitting input with IFS empty
|
|
|
|
|
2017-08-04 12:04:32 -07:00
|
|
|
####################
|
|
|
|
# read -n tests
|
|
|
|
|
|
|
|
####################
|
|
|
|
# read -z tests
|
|
|
|
|
2017-08-03 21:25:20 -07: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 =
|