Bug 4574 - sh: $RANDOM is not updated when used in pipes
Summary: sh: $RANDOM is not updated when used in pipes
Status: RESOLVED WORKSFORME
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.15.x
Hardware: Other Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-02 12:27 UTC by potzcoden
Modified: 2011-12-05 01:57 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description potzcoden 2011-12-02 12:27:05 UTC
When using $RANDOM in the builtin sh, it is not set to a new value after use in a pipe expression:

# echo $RANDOM
26470
# echo $RANDOM
27347
# echo $RANDOM
32608
# echo|echo $RANDOM
11420
# echo|echo $RANDOM
11420
# echo|echo $RANDOM
11420
Comment 1 Denys Vlasenko 2011-12-05 01:57:11 UTC
Fixed sometime ago.

I re-checked and latest (1.19.3) release does not have this bug.