Bug 4574

Summary: sh: $RANDOM is not updated when used in pipes
Product: Busybox Reporter: potzcoden
Component: OtherAssignee: unassigned
Status: RESOLVED WORKSFORME    
Severity: minor CC: busybox-cvs
Priority: P5    
Version: 1.15.x   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:

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.