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 c...@case.edu http://cnswww.cns.cwru.edu/~chet/