[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Assigning to BASHPID fails silently
From: |
Chet Ramey |
Subject: |
Re: Assigning to BASHPID fails silently |
Date: |
Wed, 19 Oct 2016 09:18:33 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 |
On 10/17/16 2:38 PM, Martijn Dekker wrote:
> bash 4.4.0 (I did not investigate other versions) does not produce an
> error message if you try to assign something to the BASHPID readonly
> using either arithmetic or normal assignment. Other readonlies produce a
> message on an assignment attempt. BASHPID seems to be an exception.
BASHPID is a dynamic variable. There should be a sentence in the man
page that says assignments to it have no effect (as it does for GROUPS
and FUNCNAME, for example). It probably should not be readonly, though
it has been marked as such in previous versions of bash. I will fix
the man page first.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
- Assigning to BASHPID fails silently, Martijn Dekker, 2016/10/17
- Re: Assigning to BASHPID fails silently, Eduardo A . Bustamante López, 2016/10/18
- Re: Assigning to BASHPID fails silently,
Chet Ramey <=
- Re: Assigning to BASHPID fails silently, Martijn Dekker, 2016/10/19
- Re: Assigning to BASHPID fails silently, Greg Wooledge, 2016/10/20
- Re: Assigning to BASHPID fails silently, Martijn Dekker, 2016/10/20
- Re: Assigning to BASHPID fails silently, lolilolicon, 2016/10/20
- Re: Assigning to BASHPID fails silently, lolilolicon, 2016/10/20
- Re: Assigning to BASHPID fails silently, Chet Ramey, 2016/10/20
- Re: Assigning to BASHPID fails silently, Dan Douglas, 2016/10/20