Skip to content

Escape Foreach #3

@harry-clarke

Description

@harry-clarke

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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions