`fgrep -r -- -- ./src/` that was a fun one to figure out how to do
I knew double dash as "everything after this will be a path" from stuff like git but I hadn't considered/realized it's more generic: "no more option flags, positional arguments from here on out"
Erm, yes, that's what it always was 😅 "path" is just one of the possible cases of positional arguments :)
I was trying to search through some files for the string "--" but grep was misinterpreting it as an options flag but with "-- -- ./src/" the first "--" converts the rest of the arguments to positional so grep can then look for the literal string "--" inside ./src/ no problem
my intuition about "--" wasn't correct as I had only ever used a single argument beyond "--" prior to this, so learning it can accept more than one was an "ah-ha!" moment