mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 04:41:14 -03:00
tests/checks/read: add test for non-interactive use of commandline
This commit is contained in:
@@ -65,3 +65,10 @@ $fish -ic '
|
||||
# CHECK: hello
|
||||
# CHECK: helloworld
|
||||
# CHECK: hello world
|
||||
|
||||
$fish -c 'commandline foo'
|
||||
# CHECKERR: commandline: Can not set commandline in non-interactive mode
|
||||
# CHECKERR: Standard input (line 1):
|
||||
# CHECKERR: commandline foo
|
||||
# CHECKERR: ^
|
||||
# CHECKERR: (Type 'help commandline' for related documentation)
|
||||
|
||||
Reference in New Issue
Block a user