bug-bash
[Top][All Lists]
Advanced

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

Re: set -a leads to truncated output from ps


From: Robert Elz
Subject: Re: set -a leads to truncated output from ps
Date: Fri, 14 Jun 2024 23:39:00 +0700

    Date:        Fri, 14 Jun 2024 07:28:41 +0000
    From:        Alain BROSSARD <abrossard@reyl.com>
    Message-ID:  
<ZRAP278MB0593EBCDF3B2E16431B2812EDEC22@ZRAP278MB0593.CHEP278.PROD.OUTLOOK.COM>

Most of this looks to be solved, or solvable now, but I see no-one seems
to have replied to this particular comment:

  | Add to this that it is extremely difficult to check whether -a is set
  | or not without using an external command.

No, that's trivial:

        case $- in
        *a*)    ;; # set -a
        *)      ;; # set +a
        esac

just fill in whatever code you need.   No externals, no difficulty.

kre



reply via email to

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