bug-bash
[Top][All Lists]
Advanced

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

Re: Bash-3.2 Official Patch 20


From: Chet Ramey
Subject: Re: Bash-3.2 Official Patch 20
Date: Sat, 25 Aug 2007 21:21:28 -0400
User-agent: Thunderbird 2.0.0.6 (Macintosh/20070728)

Mike Frysinger wrote:

> a side note ... if you change any of BASH_{ARGC,ARGV,LINENO,SOURCE} before 
> setting a readonly variable, bash will not spit out the error message about 
> the variable being readonly ...
> (UID=1)
> -bash: UID: readonly variable
> (BASH_ARGC= UID=1)
> <no output>
> this regression seems to have appeared between the last bash-2 and the first 
> bash-3 ...

They're not readonly variables.  The shell doesn't allow them to be unset,
but you can assign new (even nonsense) values.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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