Bug 344411 - $RANDOM stays the same when job executed in the background
Summary: $RANDOM stays the same when job executed in the background
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: bash
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Tomas Janousek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-10-21 12:36 UTC by Sami Farin
Modified: 2008-01-11 22:04 UTC (History)
1 user (show)

Fixed In Version: 3.2-19.fc7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-01-11 22:04:35 UTC


Attachments (Terms of Use)

Description Sami Farin 2007-10-21 12:36:01 UTC
Description of problem:
$ echo $RANDOM$RANDOM$RANDOM &
24366159785618
[2] 8575
[2]-  Done                    echo $RANDOM$RANDOM$RANDOM
$ echo $RANDOM$RANDOM$RANDOM &
24366159785618
[2] 8576
[2]-  Done                    echo $RANDOM$RANDOM$RANDOM

BUT:

$ echo $RANDOM$RANDOM$RANDOM
24366159785618
$ echo $RANDOM$RANDOM$RANDOM
194211696721283



Version-Release number of selected component (if applicable):
3.2-18

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Tomas Janousek 2007-11-06 18:04:28 UTC
(just a note for someone reading this bug in the future:
In order to reproduce it, you have to execute "echo $RANDOM" (without &) at
least once before trying this.)

Comment 2 Fedora Update System 2007-11-29 01:32:39 UTC
bash-3.2-19.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update bash'

Comment 3 Fedora Update System 2007-11-29 01:37:10 UTC
bash-3.2-19.fc8 has been pushed to the Fedora 8 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update bash'

Comment 4 Fedora Update System 2008-01-11 22:04:23 UTC
bash-3.2-19.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2008-01-11 22:04:58 UTC
bash-3.2-19.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.