mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-30 14:53:11 +00:00
038fea1a47
A special case added for #1252 needed adjustment. Fixes #5639
19 lines
317 B
Fish
19 lines
317 B
Fish
# Test that using variables as command names work correctly.
|
|
|
|
$EMPTY_VARIABLE
|
|
"$EMPTY_VARIABLE"
|
|
|
|
set CMD1 echo basic command as variable
|
|
$CMD1
|
|
|
|
set CMD2 echo '(' not expanded again
|
|
$CMD2
|
|
|
|
# Test using variables with the builtin decorator
|
|
builtin $CMD1
|
|
|
|
# Test implicit cd
|
|
set CMD3 /usr/bin
|
|
$CMD3 && echo $PWD
|
|
|
|
exit 0
|