fish-shell/tests/vars_as_commands.in
ridiculousfish 865a4647ae Allow variables in commands
Syntax highlighting for these coming in next commit.

Fixes #154
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