|
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 15:56:57 -0800 |
User-agent: | Mozilla Thunderbird |
On 11/13/24 15:44, Greg Wooledge wrote:
If the "user script" runs quickly enough, then: source userscript >logfile 2>&1 cat logfile
This would fail to save the user script's output in case it would execute "exit 1"
Yuri
[Prev in Thread] | Current Thread | [Next in Thread] |