bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The 'source x' command doesn't keep variables set by x when source o


From: Greg Wooledge
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 19:53:33 -0500

On Wed, Nov 13, 2024 at 15:56:57 -0800, Yuri wrote:
> 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"

Then don't do that.

These questions with unclear mission statements and moving goal posts
are extremely frustrating.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]