From 54d1d98e3973a57f618e8c3f18ecb1b98f7f5368 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 23 Sep 2015 13:28:32 +0200 Subject: Fix aliases with whitespace And document how that stuff works. Fixes #2220 Also, the string stuff is cool. --- doc_src/alias.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc_src') 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 -- cgit v1.2.3