mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-29 05:03:46 +08:00
46 lines
804 B
Plaintext
46 lines
804 B
Plaintext
|
|
####################
|
|
# Read with no vars is 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: Expected 1 args, got 0
|
|
read: Expected 1 args, got 2
|
|
|
|
####################
|
|
# Test splitting input
|
|
|
|
####################
|
|
# Test splitting input with IFS empty
|
|
|
|
####################
|
|
# read -n tests
|
|
|
|
####################
|
|
# read -z tests
|
|
|
|
####################
|
|
# 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 =
|