From: Michael Prokop Date: Tue, 29 May 2012 09:59:06 +0000 (+0200) Subject: zshrc: drop trailing space in grep and ls _options X-Git-Tag: v0.6.2~2 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=162b4889240fbdd2df3674af0779e1133850ac80;hp=162b4889240fbdd2df3674af0779e1133850ac80;p=grml-etc-core.git zshrc: drop trailing space in grep and ls _options If an alias ends with a space char the shell will expand the next word as an alias as well, even if it's not a global alias. Bug demonstration: | % which "grep" | grep: aliased to grep --color=auto | % which "ls" | ls: aliased to ls -b -CF --color=auto | % grep ls ~/.gitconfig | grep: F: invalid context length argument Thanks: Frank Terbeck for the bugfix Acked-by: Frank Terbeck ---