-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Put everything on a separate process, and then read for an escape sequence. When the escape sequence is given (presumably passing it on to the sub-process somehow), kill the sub-process (or not) if on level 0 (ie, the sub-process is bash, and not another for-each), or wait for the sub-process to finish before exiting the for-loop.
Things to consider:
- How are you going to run the sub-process separately, without firing through the actual for-each loop?
- Make sure you always end up in the parent directory.
- Don't create tons of processes. There should be one process for each level, rather than for each directory.