mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 11:23:43 +08:00
038fea1a47
A special case added for #1252 needed adjustment. Fixes #5639
20 lines
317 B
Fish
20 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
|