mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 05:43:11 +00:00
865a4647ae
Syntax highlighting for these coming in next commit. Fixes #154
16 lines
252 B
Fish
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
|