mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
8bf8b10f68
See the changelog additions for user-visible changes. Since we enable/disable terminal protocols whenever we pass terminal ownership, tests can no longer run in parallel on the same terminal. For the same reason, readline shortcuts in the gdb REPL will not work anymore. As a remedy, use gdbserver, or lobby for CSI u support in libreadline. Add sleep to some tests, otherwise they fall (both in CI and locally). There are two weird failures on FreeBSD remaining, disable them for now https://github.com/fish-shell/fish-shell/pull/10359/checks?check_run_id=23330096362 Design and implementation borrows heavily from Kakoune. In future, we should try to implement more of the kitty progressive enhancements. Closes #10359
47 lines
1.1 KiB
Fish
47 lines
1.1 KiB
Fish
# RUN: %fish -C 'set -g fish %fish' %s | %filter-ctrlseqs
|
|
|
|
# Empty commands should be 123
|
|
set empty_var
|
|
$empty_var
|
|
echo $status
|
|
# CHECK: 123
|
|
# CHECKERR: {{.*}} The expanded command was empty.
|
|
# CHECKERR: $empty_var
|
|
# CHECKERR: ^~~~~~~~~^
|
|
|
|
# Failed expansions
|
|
echo "$abc["
|
|
echo $status
|
|
# CHECK: 121
|
|
# CHECKERR: {{.*}} Invalid index value
|
|
# CHECKERR: echo "$abc["
|
|
# CHECKERR: ^
|
|
|
|
# Failed wildcards
|
|
echo *gibberishgibberishgibberish*
|
|
echo $status
|
|
# CHECK: 124
|
|
# CHECKERR: {{.*}} No matches for wildcard '*gibberishgibberishgibberish*'. {{.*}}
|
|
# CHECKERR: echo *gibberishgibberishgibberish*
|
|
# CHECKERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~^
|
|
|
|
$fish -c 'exit -5'
|
|
# CHECKERR: warning: builtin exit returned invalid exit code -5
|
|
echo $status
|
|
# CHECK: 251
|
|
|
|
$fish -c 'exit -1'
|
|
# CHECKERR: warning: builtin exit returned invalid exit code -1
|
|
echo $status
|
|
# CHECK: 255
|
|
|
|
# (we avoid 0, so this is turned into 255 again)
|
|
$fish -c 'exit -256'
|
|
# CHECKERR: warning: builtin exit returned invalid exit code -256
|
|
echo $status
|
|
# CHECK: 255
|
|
|
|
$fish -c 'exit -512'
|
|
# CHECKERR: warning: builtin exit returned invalid exit code -512
|
|
echo $status
|
|
# CHECK: 255
|