"Eddy Razanajatovo" <e.razanajatovo@x-media.fr> wrote:
> Caveats:
> The workaround requires filespace space in a temporary directory, and
> commands do not perform concurrently, as in the following example:
>
> #!/bin/bash
> (
> perform_something_that_generates_a_big_file_on_stdout
> ) | (
> while read
> do
> manage_a_result_line $REPLY
> done
> )
This does not require any temporary space in the filesystem. In this
specific case, the parentheses are unnecessary as well.
> Note that this affects bash even if it is invoked in Bourne-Shell mode using
> "sh" or "/bin/sh" instead of "bash".
> So the above example must be rewritten as:
No rewriting is necessary; the above will work.
paul