Re: $RANDOM never returns 0 in some conditions

2005-03-06 Thread Chet Ramey
zavandi wrote: Some additional info: [...] Is anyone looking into this? It's already been reported: http://lists.gnu.org/archive/html/bug-bash/2005-01/msg00188.html and already been fixed: http://lists.gnu.org/archive/html/bug-bash/2005-01/msg00239.html Chet -- ``The lyf so short, the craft so lon

Re: $RANDOM never returns 0 in some conditions

2005-03-05 Thread zavandi
Some additional info: These don't work (they should return the same value, right?): $ (RANDOM=1; echo $RANDOM) 21465 $ (RANDOM=1; echo $RANDOM) 22374 $ (RANDOM=1; echo $RANDOM) 6444 While all of these do: $ RANDOM=1; echo $RANDOM 16838 $ RANDOM=1; echo $RANDOM 16838 $ RANDOM=1; echo $RANDOM 168