sack icon indicating copy to clipboard operation
sack copied to clipboard

sag/sawk problem when search for pattern with spaces

Open jjcf89 opened this issue 10 years ago • 3 comments

$ /bin/bash -x sag -Q 'write body'
+ sack -ag -Q write body
sack__option is: -ag

============> running ag! <============

===> Current Profile: ipnc
===> Using flags: 
===> Searching under:  
===> Searching parameters: -Q write body

 ERR: Error stat()ing: body
 ERR: Error opening directory body: No such file or directory

sag script removes quotes and sawk interprets second word as directory to search.

Calling sack -ag directly has same problem. sack -ag -Q 'write body'

jjcf89 avatar Apr 21 '14 18:04 jjcf89

Yes, please see the PR at https://github.com/sampson-chen/sack/pull/14.

star-szr avatar Sep 25 '14 18:09 star-szr

The other PR is out of date, I submitted a new one at https://github.com/sampson-chen/sack/pull/33 with the fix that is working for me ATM.

superkhau avatar Mar 16 '16 03:03 superkhau

@sampson-chen ^

superkhau avatar Mar 16 '16 03:03 superkhau