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