bug-bash
[Top][All Lists]
Advanced

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

Re: $RANDOM and here-string and here-doc


From: Chet Ramey
Subject: Re: $RANDOM and here-string and here-doc
Date: Tue, 20 Mar 2012 21:47:48 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2

On 3/20/12 12:37 PM, Jurij Mihelič wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: i686
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
> -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DC$
> uname output: Linux lalgec 3.0.0-16-generic-pae #29-Ubuntu SMP Tue Feb 14 
> 13:56:31 UTC 2012 i686 i686 i386 GNU/Linux
> Machine Type: i686-pc-linux-gnu
> 
> Bash Version: 4.2
> Patch Level: 10
> Release Status: release
> 
> Description:
> Hi. I think there is a bug when using $RANDOM in combination with here 
> document or here string. When using here-doc/str one random number is 
> consumed for generating filename for temporary file used in the redirection. 
> Probably the bug also shows up always when temporay files are created with 
> sh_mktmpfd().

Thanks for the report.  This will be fixed, one way or another, in the
next release of bash.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
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]