bug-bash
[Top][All Lists]
Advanced

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

Re: read with -a sets wrong variable name


From: Chet Ramey
Subject: Re: read with -a sets wrong variable name
Date: Mon, 26 Jan 2004 11:21:26 -0500

> Machine Type: i386-pc-linux-gnu
> 
> Bash Version: 2.05b
> Patch Level: 0
> Release Status: release
> 
> Description:
>       The read shell builtin command with -a option does not check
>       if specified variable name is valid or not.
> 
> Repeat-By:
>       $ echo XXXX | (read " foo bar"; set |grep XXXX)
>       -bash: read: ` foo bar': not a valid identifier
> 
>       $ echo XXXX | (read -a " foo bar"; set |grep XXXX)
>        foo bar=([0]="XXXX")

Thanks for the report.  This has been fixed for the next release.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live...Laugh...Love
Chet Ramey, ITS, CWRU    address@hidden    http://tiswww.tis.cwru.edu/~chet/




reply via email to

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