Re: How to run bash test suite

2017-07-06 Thread Bob Proulx
Phi Debian wrote:
> I tried to subscribe to bug-bash but never got the confirmation mail.

You must have successfully received and replied to the confirmation
email because I looked at the subscriber list and you are subscribed.
Obviously not needed now but if you have trouble with the mailing
lists write to the mailing list owner at bug-bash-ow...@gnu.org to
contact the humans who help with the mailing list.  This is the email
address convention for all of the Mailman managed mailing lists.

Bob



Re: printf does not return error on readonly assignment

2017-07-06 Thread Chet Ramey
On 7/6/17 12:41 AM, Arnaud Gaillard wrote:

> Bash Version: 4.4
> Patch Level: 12
> Release Status: release
> 
> Description:
> 
> According to the help page of the `printf` builtin, it
> should not return success when an error has occurred during the
> assignment:
> 
>> Exit Status:
>> Returns success unless an invalid option is given or a write or assignment
>> error occurs.
> 
> Assigning a value to a `readonly` variable returns an error code:
> 
>> bash$ readonly a=2
>> bash$ a=3
>> -bash: a: readonly variable
>> bash$ echo $?
>> 1
> 
> However, assigning the value to a `readonly` variable via `printf -v`
> returns success:

Thanks for the report.  This is a reasonable improvement to make.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/