fish-shell/tests/vars_as_commands.in
Aaron Gyes 038fea1a47 Fix builtin $var expansion
A special case added for #1252 needed adjustment.

Fixes #5639
2019-02-10 14:45:03 -08:00

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