Re: Strange bug in arithmetic function

2011-02-22 Thread jellybean stonerfish
On Mon, 21 Feb 2011 10:13:54 +0100, Marcel de Reuver wrote: > In a bash script I use: $[`date --date='this week' +'%V'`%2] to see if > the week number is even. > Only in week 08 the error is: bash: 08: value too great for base (error > token is "08") the same in week 09, all others are Ok... > >

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