The shell interprets ! in your input as a replacement for the command:
$ ack-grep root /etc/passwd root:x:0:0:root:/root:/bin/bash $ !ac ack-grep root /etc/passwd root:x:0:0:root:/root:/bin/bash $
You need to tell the shell that ! doesn't really matter; There are two ways to do this:
ack-grep "paypal_responded(?\!_at)"
Strike>
ack-grep "paypal_responded\(?\!_at\)"
or
ack-grep 'paypal_responded(?!_at)'
Single-quoted strings have fewer uses for them:
$ ack-grep "s\!" /etc/passwd $ ack-grep 's!' /etc/passwd $
sarnold Dec 05 '11 at 12:10 2011-12-05 12:10
source share