[Bug 4574] New: sh: $RANDOM is not updated when used in pipes

bugzilla at busybox.net bugzilla at busybox.net
Fri Dec 2 12:27:05 UTC 2011


https://bugs.busybox.net/show_bug.cgi?id=4574

           Summary: sh: $RANDOM is not updated when used in pipes
           Product: Busybox
           Version: 1.15.x
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: potzcoden at priveasy.de
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


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

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list