Re: weird bash pipe behavior

2010-01-20 Thread jellybean stonerfish
On Wed, 20 Jan 2010 07:34:35 -0800, CptDpondo wrote: > Note that it's using \r instead of \n for line breaks; that's to > overwrite the status line without scrolling the screen. this works fine > when displaying on a terminal. > > I'm trying to reduce this to where it only prints the status lin

weird bash pipe behavior

2010-01-20 Thread CptDpondo
I'm trying to set up a pipe and it's not doing what I expect. By way of background, I'm using mencoder to create a video file. mencoder prints a status line every 0.1 seconds in the following format: Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. videocodec: libavcodec (704x464 four

Re: Problems when RANDOM without $ is used as an array index

2010-01-20 Thread DennisW
On Jan 20, 7:28 am, Stephane CHAZELAS wrote: > 2010-01-12 22:07:31 -0500, Chet Ramey: > > > > > On 1/12/10 5:16 AM, Stephane CHAZELAS wrote: > > > 2010-01-11, 17:42(-05), Chet Ramey: > > Think of it as > > > x = $(( RANDOM%6+1 + RANDOM%6+1 )) > > y = dice[x] > > dice[RANDOM%6+1

Re: Problems when RANDOM without $ is used as an array index

2010-01-20 Thread Stephane CHAZELAS
2010-01-12 22:07:31 -0500, Chet Ramey: > On 1/12/10 5:16 AM, Stephane CHAZELAS wrote: > > 2010-01-11, 17:42(-05), Chet Ramey: > Think of it as > > x = $(( RANDOM%6+1 + RANDOM%6+1 )) > y = dice[x] > dice[RANDOM%6+1 + RANDOM%6+1] = y + 1 > return y > >>> [...] > >>> > >>

Bash-4.1 Official Patch 2

2010-01-20 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 4.1 Patch-ID: bash41-002 Bug-Reported-by:guillaume.outt...@free.fr Bug-Reference-ID: <20100105230441.70d171aa7...@asterix.local> Bug-Reference-URL: http://lists.

Bash-4.1 Official Patch 1

2010-01-20 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 4.1 Patch-ID: bash41-001 Bug-Reported-by:Yann Rouillard Bug-Reference-ID: <4b44a410.4070...@pleiades.fr.eu.org> Bug-Reference-URL: http://lists.gnu.org/archive/