mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 00:04:31 +08:00
20 lines
433 B
Fish
20 lines
433 B
Fish
|
#RUN: %fish %s
|
||
|
|
||
|
commandline --input "echo foo | bar" --is-valid
|
||
|
and echo Valid
|
||
|
# CHECK: Valid
|
||
|
|
||
|
commandline --input "echo foo | " --is-valid
|
||
|
or echo Invalid $status
|
||
|
# CHECK: Invalid 2
|
||
|
|
||
|
# TODO: This seems a bit awkward?
|
||
|
# The empty commandline is an error, not incomplete?
|
||
|
commandline --input '' --is-valid
|
||
|
or echo Invalid $status
|
||
|
# CHECK: Invalid 1
|
||
|
|
||
|
commandline --input 'echo $$' --is-valid
|
||
|
or echo Invalid $status
|
||
|
# CHECK: Invalid 1
|