Used fish's array multiplication to generate all the `--ignore` options for a number of subdirectories:
``` ag --case-sensitive '\bsplit\b' '--ignore='(echo */{log,tmp,prototype} | tr ' ' \n) ``` I couldn't just do ``` ag --case-sensitive '\bsplit\b' '--ignore='(echo -ns */{log,tmp,prototype}\n) ``` because then the globbing ended up non-existent files with literal newlines in their name. I'd expect there's a user-accessible fish function that, given a glob string, will return a list of matching paths. Assuming the function is call `fish_glob_expand`, my command would have been ``` ag --case-sensitive '\bsplit\b' '--ignore='(fish_glob_expand '*/{log,tmp,prototype}') ``` Is there a function exposing the glob expansion? Thanks, Scott -- ----- This is a work of fiction. Names, characters, places, and incidents either are the product of the writer's imagination or are used fictitiously, and any resemblance to actual persons, living or dead, businesses, companies, events, or locales is entirely coïncidental.
------------------------------------------------------------------------------
_______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users