[Git-commits] [grml/grml-etc-core] 023f0e: zshrc: drop trailing space in grep and ls _options

Michael Prokop mika at grml.org
Tue May 29 12:04:24 CEST 2012


  Branch: refs/heads/mika/drop_trailing_space_in_options
  Home:   https://github.com/grml/grml-etc-core
  Commit: 023f0efbf7b10310798758086fe45c3121e2ae92
      https://github.com/grml/grml-etc-core/commit/023f0efbf7b10310798758086fe45c3121e2ae92
  Author: Michael Prokop <mika at grml.org>
  Date:   2012-05-29 (Tue, 29 May 2012)

  Changed paths:
    M etc/zsh/zshrc

  Log Message:
  -----------
  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 at grml.org> for the bugfix





More information about the Git-commits mailing list