mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +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
49 lines
1.7 KiB
Fish
49 lines
1.7 KiB
Fish
#RUN: %fish %s | %filter-ctrlseqs
|
|
# Avoid regressions of issue \#3860 wherein the first word of the alias ends with a semicolon
|
|
function foo
|
|
echo ran foo
|
|
end
|
|
alias my_alias "foo; and echo foo ran"
|
|
my_alias
|
|
# CHECK: ran foo
|
|
# CHECK: foo ran
|
|
|
|
alias a-2='echo "hello there"'
|
|
alias a-3='echo hello\ there'
|
|
|
|
alias foo '"a b" c d e'
|
|
# Bare `alias` should list the aliases we have created and nothing else
|
|
# We have to exclude two aliases because they're an artifact of the unit test
|
|
# framework and we can't predict the definition.
|
|
alias | grep -Ev '^alias (fish_indent|fish_key_reader) '
|
|
# CHECK: alias a-2 'echo "hello there"'
|
|
# CHECK: alias a-3 echo\\\ hello\\\\\\\ there
|
|
# CHECK: alias foo '"a b" c d e'
|
|
# CHECK: alias my_alias 'foo; and echo foo ran'
|
|
|
|
# #4756 - missing "--" argument to string causing issues with "--" options
|
|
alias l. "ls -d .*"
|
|
# No output
|
|
|
|
alias d "'/mnt/c/Program Files (x86)/devenv.exe' /Edit"
|
|
functions d
|
|
# CHECK: # Defined via `source`
|
|
# CHECK: function d --wraps=\'/mnt/c/Program\ Files\ \(x86\)/devenv.exe\'\ /Edit --description alias\ d\ \'/mnt/c/Program\ Files\ \(x86\)/devenv.exe\'\ /Edit
|
|
# CHECK: '/mnt/c/Program Files (x86)/devenv.exe' /Edit $argv
|
|
# CHECK: end
|
|
|
|
# Use "command" to prevent recusion, and don't add --wraps to avoid accidental recursion in completion.
|
|
alias e 'e --option=value'
|
|
functions e
|
|
# CHECK: # Defined via `source`
|
|
# CHECK: function e --description 'alias e e --option=value'
|
|
# CHECK: command e --option=value $argv
|
|
# CHECK: end
|
|
|
|
# Don't add --wraps if it looks like a wrapper command to avoid accidental recursion in completion.
|
|
alias f 'wrapper around f'
|
|
functions f
|
|
# CHECK: # Defined via `source`
|
|
# CHECK: function f --description 'alias f wrapper around f'
|
|
# CHECK: wrapper around f $argv
|
|
# CHECK: end
|