|
From: | Yuri |
Subject: | Re: The 'source x' command doesn't keep variables set by x when source output is piped into other command |
Date: | Wed, 13 Nov 2024 14:12:53 -0800 |
User-agent: | Mozilla Thunderbird |
On 11/13/24 14:02, Greg Wooledge wrote:
The commands within a pipeline are executed in subshells (child processes), so all variable changes are discarded when the subshell exits.
This sounds like an implementation detail that should be invisible that affects how the 'source' feature works.
This makes it a very confusing from the user's perspective. Yuri
[Prev in Thread] | Current Thread | [Next in Thread] |