Bug 344411

Summary: $RANDOM stays the same when job executed in the background
Product: [Fedora] Fedora Reporter: Sami Farin <hvtaifwkbgefbaei>
Component: bashAssignee: Tomas Janousek <tjanouse>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 3.2-19.fc7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-11 22:04:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.