bash - how to stop shell script from getting confused by ack PATTERN escapes -


i trying use ack search (in haskell files) +|+

i looked @ ack-grep: chars escaping doesn't help

on mac os x 10.6 following responses:

$ ack -q +|+ -bash: +: command not found missing option after + ack: see ack --help, ack --help-types or ack --man options  $ ack \+\|\+ unknown option: | ack: see ack --help, ack --help-types or ack --man options  $ ack [+][|][+] -bash: ][+]: command not found ack: invalid regex '[+][':   unmatched [ in regex; marked <-- here in m/[+][ <-- here /  $ ack \q+|+\e -bash: +e: command not found 

that's suggestions in q&a listed above

this should work intended:

$ ack "\+\|\+" 

(edited correct per comments. unquoted pipe 'or'.)


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -