Earlier quoted context omitted.
That's not the issue. The issue is that, if you want to simulate both "grep" and "grep -r", you need to different functions, or you need to have your "grep" function accept a record of parameters.
Actually, you can do `grep -r` by just combining `grep` and `lstree`. Here's an example: example = do file This is an example of how most of Bash's option heavy ecosystem is an outgrowth of Bash's limitation as a language (individual commands accumulate flags to work around functionality difficult to implement within the Host language). I think having a decent host language decreases the need for so many configuratio…
find . -exec grep $pattern {} \;
but `grep -r` is easier to write.