hlissner / zsh-autopair

Auto-close and delete matching delimiters in zsh
MIT License
509 stars 37 forks source link

Dashes in _autopair-count cause fgrep to freak out #1

Closed hlissner closed 8 years ago

hlissner commented 8 years ago

command -t "|" => Backspace causes:

$ git -t "fgrep: invalid option -- t                                                             ~
usage: fgrep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
    [-e pattern] [-f file] [--binary-files=value] [--color=when]
    [--context[=num]] [--directories=action] [--label] [--line-buffered]
    [--null] [pattern] [file ...]

Note to self: escape them!