Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
I want to walk a largish directory tree and call the same bash script for each, with parent environment (directory) passed via stdargs, without creating a fork bomb.
I was just wondering if there's an idiom or prior art for this?
One can almost certainly do this entirely in bash, using the '*/' directory glob, a test for sanity, and some string manipulation (or dirname) to get the parent, without forking any find processes.
Personally I'd be inclined to drop the calling another script bit (and by extension the mentioned risk of fork bombs) too, and just put whatever it's supposed to do inside the main loop. Hard to say how well that'll work without knowing your final intent though.
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.