2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-16 23:14:04 +00:00
fish-shell/tests/vars_as_commands.in
Aaron Gyes 038fea1a47 Fix builtin $var expansion
A special case added for  needed adjustment.

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

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