fish-shell/tests/checks/commandline.fish
Fabian Boehm 494bdfa013 Revert accidentally pushed fork
Revert "README for this fork"

This reverts commit 97db461e7f19c51e84fbf0dcb10fb25e0f582870.

Revert "Allow foo=bar global variable assignments"

This reverts commit 45a2017580ceb1ef2d79100b6cbf65d1db3c7fa5.

Revert "Interpret () in command position as subshell"

This reverts commit 0199583435c3b584b90769d50252d16105349671.

Revert "Allow special variables $?,$$,$@,$#"

This reverts commit 4a71ee12883a720408419a53482818177a834ec7.

Revert "Allow $() in command position"

This reverts commit 4b99fe2288da07ea1d0bc79ac0c829b65fee230a.

Revert "Turn off full LTO"

This reverts commit b1213f1385ad07578ca4db5f4fa7cb6371cb3be9.

Revert "Back out "bind: Remove "c-" and "a-" shortcut notation""

This reverts commit f43abc42f91adf43bb2dfc65b29dd4f838ea21cf.

Revert "Un-hide documentation of non-fish shell builtins"

This reverts commit 485201ba2e326a0c711c003290d6f6eb2e247012.
2025-01-19 18:34:59 +01:00

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