diff options
Diffstat (limited to 'doc_src/alias.txt')
-rw-r--r-- | doc_src/alias.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc_src/alias.txt b/doc_src/alias.txt index 028277a3..cbb9508e 100644 --- a/doc_src/alias.txt +++ b/doc_src/alias.txt @@ -18,6 +18,8 @@ alias NAME=DEFINITION You cannot create an alias to a function with the same name. +Note that spaces need to be escaped in the call to alias just like in the commandline _even inside the quotes_. + \subsection alias-example Example @@ -31,4 +33,8 @@ alias rmi "rm -i" function rmi rm -i $argv end + +# This needs to have the spaces escaped or "Chrome.app..." will be seen as an argument to "/Applications/Google": + +alias chrome='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome banana' \endfish |