mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-16 06:32:45 +08:00
![Fabian Boehm](/assets/img/avatar_default.png)
Revert "README for this fork" This reverts commit97db461e7f
. Revert "Allow foo=bar global variable assignments" This reverts commit45a2017580
. Revert "Interpret () in command position as subshell" This reverts commit0199583435
. Revert "Allow special variables $?,$$,$@,$#" This reverts commit4a71ee1288
. Revert "Allow $() in command position" This reverts commit4b99fe2288
. Revert "Turn off full LTO" This reverts commitb1213f1385
. Revert "Back out "bind: Remove "c-" and "a-" shortcut notation"" This reverts commitf43abc42f9
. Revert "Un-hide documentation of non-fish shell builtins" This reverts commit485201ba2e
.
28 lines
564 B
Fish
28 lines
564 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
|
|
|
|
commandline --help &>/dev/null
|
|
echo Help $status
|
|
# CHECK: Help 0
|
|
|
|
commandline -pC 0 --input "test | test"
|
|
echo $status
|
|
# CHECK: 0
|