diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2015-09-23 13:28:32 +0200 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2015-09-23 13:28:32 +0200 |
commit | 54d1d98e3973a57f618e8c3f18ecb1b98f7f5368 (patch) | |
tree | d434fa7e837694af214031506f7ee4248cbbc145 /doc_src | |
parent | 6f92781992bc1419944ea8e40d63b9c2ab02fa9f (diff) |
Fix aliases with whitespace
And document how that stuff works.
Fixes #2220
Also, the string stuff is cool.
Diffstat (limited to 'doc_src')
-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 |