2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-25 11:15:07 +00:00
fish-shell/tests/vars_as_commands.in
ridiculousfish 865a4647ae Allow variables in commands
Syntax highlighting for these coming in next commit.

Fixes 
2018-09-01 12:00:56 -07:00

16 lines
252 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 implicit cd
set CMD3 /usr/bin
$CMD3 && echo $PWD
exit 0