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: #!microsuxx
Subject: Re: The 'source x' command doesn't keep variables set by x when source output is piped into other command
Date: Thu, 14 Nov 2024 00:56:03 +0100

u need to , save out of . script1 to log1 but what was your second sentense
alike of this first one ?
u run source over log1 to produce log2 ?

i thought ur looking for errors and for this set -x and stderr ? no need
for both ?

i need some details clarified ..

On Thu, Nov 14, 2024, 12:48 AM Yuri <yuri@rawbw.com> wrote:

> Hi !microsuxx,
>
>
> But I need to save the output of the user script into a dedicated log file.
> This script should run, should save its output into a dedicated log, and
> then many other commands should use these environment variables.
>
> Their logs can't be combined into one.
>
>
> Yuri
>
>
>
> On 11/13/24 15:36, #!microsuxx wrote:
> > what u need to do with the vars include all code in tee or try exec >
> > >( tee -a log ) 2>&1 set -x . my.bash ... what i firstly meant :
> > #!/bin/bash tee -a log < <( all code here set -x ; . code ; other code
> > that needs the vars set maybe needs a 2> smth ) try ( set -x . mybash
> > vars_code ) |& tee -a log
>
>
>


reply via email to

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