mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-01 15:14:26 +08:00
728a4634a1
This is a step to storing fish vars as actual vectors rather than flat strings.
49 lines
891 B
Plaintext
49 lines
891 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
|
|
|
|
####################
|
|
# Verify correct behavior of subcommands and splitting of input.
|
|
|
|
####################
|
|
# 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 =
|