[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: set -a leads to truncated output from ps
From: |
Alain BROSSARD |
Subject: |
RE: set -a leads to truncated output from ps |
Date: |
Thu, 13 Jun 2024 17:45:07 +0000 |
Hi Andreas,
Sure, the variables explicitly assigned to get exported, that is the
expected behavior.
But there is nothing which explains why the variable COLUMNS becomes an
environment variable.
Run “ps ax” twice and the results of the second execution is different from
the first if and only if “set -a” was called fiirst. This is NOT an expected
behavior.
Do the following and you won’t get a problem:
set -a
var1=xx
var2=xx
set +a
All is fine, but do the following and COLUMNS gets exported:
set -a
echo $PATH | grep xxx/scripts || PATH=${PATH}:/newdir
ps ax is now truncated, definitely NOT expected
Regards,
Alain
[cid:ISP-REYL_HubSWS_Col_email_v2_88f4ea19-df87-4cc1-aef3-c28f2127924c.png]<http://www.reyl.com>
Alain BROSSARD
System & Network Administrator
Technology
D +41 22 816 8607<tel:+41%2022%20816%208607>
M +41 79 612 2336<tel:+41%2079%20612%202336>
T +41 22 816 8600<tel:+41%2022%20816%208600>
F +41 22 816 8009<tel:+41%2022%20816%208009>
abrossard@reyl.com<mailto:abrossard@reyl.com>
REYL & Cie SA
Rue du Rhône 4
1204 Genève
www.reyl.com<https://www.reyl.com>
[cid:SUCCES.TOGETHER_RVB_email_345119d7-0ea9-4fc1-b2e0-c31313eae094.png]
________________________________
The information contained in email messages from REYL & Cie SA may contain
confidential, proprietary or legally privileged information and is intended
only for the use of the addressee named above. No confidentiality or privilege
is waived or lost by any mis-transmission. If you are not the addressee of this
email message, you must not use, distribute, copy it in any form or take any
action in reliance on it. If you have received this email message by error,
please notify us immediately by replying to the message and delete it from your
computer. If there are any attachments to the email messages that you received
in error, kindly refrain from opening them and do not download or save them to
your computer. In accordance with industry standards and practices, and to
comply with our legal and regulatory retention requirement REYL & Cie SA
monitors and retains email messages for a period of time in accordance with its
policies, guidelines and procedures. Email transmission cannot be guaranteed to
be secured or error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. REYL & Cie SA is not
liable for any unproper or incomplete transmission of the information contained
in email messages or for any delay it their receipt. Some publications included
in email message may be advertising material (pursuant to Art. 68 of the
Federal Act on Financial Services, Financial Services Act of 15 June 2018) for
financial services or for financial instruments. For any financial instruments
mentioned, we will be happy to provide you with additional documents at any
time and free of charge, such as a key information document pursuant to Art. 58
et seq. of the Financial Services Act, a prospectus pursuant to Art. 35 et seq.
of the Financial Services Act or an equivalent foreign product information
sheet, e.g. a basic information sheet pursuant to Regulation EU 1286/2014 for
packaged investment products for retail investors and insurance investment
products (PRIIPS KID). We consider your inquiries about our products and
services as a request to contact you and send you relevant information.
From: Andreas Schwab <schwab@linux-m68k.org>
Sent: Thursday, June 13, 2024 6:12 PM
To: Alain BROSSARD via Bug reports for the GNU Bourne Again SHell
<bug-bash@gnu.org>
Cc: Alain BROSSARD <abrossard@reyl.com>
Subject: Re: set -a leads to truncated output from ps
Why do you think this is a bug in bash? You are telling the shell to export any
modified variable, and you get what you asked for. -- Andreas Schwab, schwab@
linux-m68k. org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780
A9DA AEC1
ZjQcmQRYFpfptBannerStart
This Message Is From an Untrusted Sender
This message was sent from outside of REYL & CIE.
You have not previously corresponded with this sender.
Report Suspicious
<https://us-phishalarm-ewt.proofpoint.com/EWT/v1/HLcdjgI!ONEX1InuY2PMB7UHsCgu-WKgoDtDP2GuBfwnirALO4t5HcqvGJvv6KZMlBU76c3u5w$>
ZjQcmQRYFpfptBannerEnd
Why do you think this is a bug in bash? You are telling the shell to
export any modified variable, and you get what you asked for.
--
Andreas Schwab, schwab@linux-m68k.org<mailto:schwab@linux-m68k.org>
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
- Re: set -a leads to truncated output from ps, (continued)
- Re: set -a leads to truncated output from ps, Oğuz, 2024/06/13
- Re: set -a leads to truncated output from ps, alex xmb sw ratchev, 2024/06/13
- it, soRE: set -a leads to truncated output from ps, Alain BROSSARD, 2024/06/13
- Re: it, soRE: set -a leads to truncated output from ps, Oğuz, 2024/06/13
- RE: it, soRE: set -a leads to truncated output from ps, Alain BROSSARD, 2024/06/13
- Re: it, soRE: set -a leads to truncated output from ps, Greg Wooledge, 2024/06/13
- Re: it, soRE: set -a leads to truncated output from ps, alex xmb sw ratchev, 2024/06/14
- Re: it, soRE: set -a leads to truncated output from ps, Robert Elz, 2024/06/13
Re: set -a leads to truncated output from ps, Andreas Schwab, 2024/06/13
- Re: set -a leads to truncated output from ps, Greg Wooledge, 2024/06/13
- RE: set -a leads to truncated output from ps,
Alain BROSSARD <=
- Re: set -a leads to truncated output from ps, Chet Ramey, 2024/06/13
- Re: set -a leads to truncated output from ps, Oğuz, 2024/06/13
- RE: set -a leads to truncated output from ps, Alain BROSSARD, 2024/06/14
- Re: set -a leads to truncated output from ps, Greg Wooledge, 2024/06/14
- RE: set -a leads to truncated output from ps, Alain BROSSARD, 2024/06/14
- Re: set -a leads to truncated output from ps, Greg Wooledge, 2024/06/14
Re: set -a leads to truncated output from ps, Koichi Murase, 2024/06/14
Re: set -a leads to truncated output from ps, Oğuz, 2024/06/15
Re: set -a leads to truncated output from ps, Greg Wooledge, 2024/06/15
Re: set -a leads to truncated output from ps, Koichi Murase, 2024/06/15