[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: why are pipeline commands (allowed to be) executed in subshells?
From: |
Philippe Cerfon |
Subject: |
Re: why are pipeline commands (allowed to be) executed in subshells? |
Date: |
Fri, 25 Nov 2022 19:37:03 +0100 |
On Fri, Nov 25, 2022 at 7:23 PM Davide Brini <dave_br@gmx.com> wrote:
> ** Additionally, each command of a multi-command pipeline is in a subshell
> environment; as an extension, however, any or all commands in a pipeline
> may be executed in the current environment.
Ah, there it is. Thanks a lot.
> In general, safe programs should not rely/depend on any element of a
> pipeline being executed in a subshell or in the current environment.
So in principle, for portable programming, one must however assume
that the might?!
Thanks,
Philippe