zshrc: drop trailing space in grep and ls _options
authorMichael Prokop <mika@grml.org>
Tue, 29 May 2012 09:59:06 +0000 (11:59 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 29 May 2012 11:06:48 +0000 (13:06 +0200)
commit162b4889240fbdd2df3674af0779e1133850ac80
tree9f448af1909b8560c411cb43559b6ad714b682a5
parent4637a1a999d6b0c565ba0ad896f1985389537a25
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 <ft@grml.org> for the bugfix
Acked-by: Frank Terbeck <ft@grml.org>
etc/zsh/zshrc