sack
sack copied to clipboard
sag/sawk problem when search for pattern with spaces
$ /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'
Yes, please see the PR at https://github.com/sampson-chen/sack/pull/14.
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.
@sampson-chen ^