mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 17:07:44 +00:00
9dd0c47d0b
If the first word of the alias body ends with a semicolon we need to strip that character, and otherwise escape the extracted command, to ensure the subsequent function definition is valid. Fixes #3860
7 lines
178 B
Fish
7 lines
178 B
Fish
# 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
|