/bin/sh arithmetic doesn't seem to like leading 0 now

2012-09-21 Thread David Wolfskill
I have a construct in a shell script that I had been using under stable/8 (most recently, @r240259), but which throws an error under stable/9 (at least as early as @r238602): $ echo $(( ( $( date +%m ) - 1 ) / 3 + 1 )) 3 $ uname -r 8.3-PRERELEASE $ echo $(( ( $( date +%m ) - 1 ) / 3 + 1 )) arithm

Re: /bin/sh arithmetic doesn't seem to like leading 0 now

2012-09-21 Thread Brandon Allbery
On Fri, Sep 21, 2012 at 1:09 PM, David Wolfskill wrote: > $ echo $(( 09 + 0 )) > Unable to get to fbsd box now but suspicious mind wants to know what happens with 07 in place of 09. -- brandon s allbery allber...@gmail.com wandering unix systems administrato

Re: /bin/sh arithmetic doesn't seem to like leading 0 now

2012-09-21 Thread David Wolfskill
On Fri, Sep 21, 2012 at 01:20:07PM -0400, Brandon Allbery wrote: > On Fri, Sep 21, 2012 at 1:09 PM, David Wolfskill wrote: > > > $ echo $(( 09 + 0 )) > > > > Unable to get to fbsd box now but suspicious mind wants to know what > happens with 07 in place of 09. As (I) expected, it's handled Just

Re: /bin/sh arithmetic doesn't seem to like leading 0 now

2012-09-21 Thread Jilles Tjoelker
On Fri, Sep 21, 2012 at 10:09:02AM -0700, David Wolfskill wrote: > I have a construct in a shell script that I had been using under > stable/8 (most recently, @r240259), but which throws an error under > stable/9 (at least as early as @r238602): > $ echo $(( ( $( date +%m ) - 1 ) / 3 + 1 )) > 3 >

Re: /bin/sh arithmetic doesn't seem to like leading 0 now

2012-09-21 Thread David Wolfskill
On Fri, Sep 21, 2012 at 07:34:06PM +0200, Jilles Tjoelker wrote: > ... > > Is this intentional? > > Yes, it was changed with r216547, December 2010. > > This was done to avoid an inconsistency where constants starting with > "0" and containing "8" or "9" were decimal, so something like > $((018-0

Re: /bin/sh arithmetic doesn't seem to like leading 0 now

2012-09-21 Thread Daryl Richards
On 21/09/2012 1:20 PM, Brandon Allbery wrote: On Fri, Sep 21, 2012 at 1:09 PM, David Wolfskill wrote: $ echo $(( 09 + 0 )) Unable to get to fbsd box now but suspicious mind wants to know what happens with 07 in place of 09. Interestingly enough, bash gives a proper explanation: bash$ echo

tws bug ? (LSI SAS 9750)

2012-09-21 Thread Mike Tancsa
Hi, I have been trying out a nice new tws controller and decided to enable debugging in the kernel and run some stress tests. With a regular GENERIC kernel, it boots up fine. But with debugging, it panics on boot. Anyone know whats up ? Is this something that should be sent directly to LSI ? pc

Re: tws bug ? (LSI SAS 9750)

2012-09-21 Thread Jim Harris
On Fri, Sep 21, 2012 at 1:07 PM, Mike Tancsa wrote: > Hi, > I have been trying out a nice new tws controller and decided to enable > debugging in the kernel and run some stress tests. With a regular > GENERIC kernel, it boots up fine. But with debugging, it panics on > boot. Anyone know whats up

Re: tws bug ? (LSI SAS 9750)

2012-09-21 Thread Mike Tancsa
On 9/21/2012 4:59 PM, Jim Harris wrote: >> boot. Anyone know whats up ? Is this something that should be sent >> directly to LSI ? > > Through a code inspection, this mutex is being recursed whether or not > debugging is enabled. There is no code path here specific to > INVARIANTS. And the main

Re: /bin/sh arithmetic doesn't seem to like leading 0 now

2012-09-21 Thread David O'Brien
On Fri, Sep 21, 2012 at 07:34:06PM +0200, Jilles Tjoelker wrote: > On Fri, Sep 21, 2012 at 10:09:02AM -0700, David Wolfskill wrote: > > $ echo $(( ( $( date +%m ) - 1 ) / 3 + 1 )) > > arithmetic expression: expecting ')': " ( 09 - 1 ) / 3 + 1 " ... > This was done to avoid an inconsistency where co

Re: tws bug ? (LSI SAS 9750)

2012-09-21 Thread Jim Harris
On Fri, Sep 21, 2012 at 3:11 PM, Mike Tancsa wrote: > On 9/21/2012 4:59 PM, Jim Harris wrote: > Thanks, that allows it to boot up now! > > pci2: on pcib2 > LSI 3ware device driver for SAS/SATA storage controllers, version: > 10.80.00.003 > tws0: port 0x4000-0x40ff mem > 0xc246-0xc2463fff,

Re: tws bug ? (LSI SAS 9750)

2012-09-21 Thread Mike Tancsa
On 9/21/2012 8:03 PM, Jim Harris wrote: >> . >> then a lot of >> . >> (probe65:tws0:0:65:0): INQUIRY. CDB: 12 0 0 0 24 0 >> (probe65:tws0:0:65:0): CAM status: Invalid Target ID >> (probe65:tws0:0:65:0): Error 22, Unretryable error >> (probe1:tws0:0:1:0): INQUIRY. CDB: 12 0 0 0 24 0 >> (probe1:tws0:

[releng_8 tinderbox] failure on mips/mips

2012-09-21 Thread FreeBSD Tinderbox
TB --- 2012-09-22 00:53:58 - tinderbox 2.9 running on freebsd-legacy2.sentex.ca TB --- 2012-09-22 00:53:58 - FreeBSD freebsd-legacy2.sentex.ca 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2012-09-22 00

Re: tws bug ? (LSI SAS 9750)

2012-09-21 Thread Jim Harris
On Fri, Sep 21, 2012 at 5:37 PM, Mike Tancsa wrote: > On 9/21/2012 8:03 PM, Jim Harris wrote: >>> . >>> then a lot of >>> . >>> (probe65:tws0:0:65:0): INQUIRY. CDB: 12 0 0 0 24 0 >>> (probe65:tws0:0:65:0): CAM status: Invalid Target ID >>> (probe65:tws0:0:65:0): Error 22, Unretryable error >>> (pr

[releng_8 tinderbox] failure on i386/i386

2012-09-21 Thread FreeBSD Tinderbox
TB --- 2012-09-22 04:47:11 - tinderbox 2.9 running on freebsd-legacy2.sentex.ca TB --- 2012-09-22 04:47:11 - FreeBSD freebsd-legacy2.sentex.ca 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2012-09-22 04

[releng_8 tinderbox] failure on amd64/amd64

2012-09-21 Thread FreeBSD Tinderbox
TB --- 2012-09-22 04:47:11 - tinderbox 2.9 running on freebsd-legacy2.sentex.ca TB --- 2012-09-22 04:47:11 - FreeBSD freebsd-legacy2.sentex.ca 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2012-09-22 04

[releng_8 tinderbox] failure on arm/arm

2012-09-21 Thread FreeBSD Tinderbox
TB --- 2012-09-22 04:47:11 - tinderbox 2.9 running on freebsd-legacy2.sentex.ca TB --- 2012-09-22 04:47:11 - FreeBSD freebsd-legacy2.sentex.ca 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2012-09-22 04

[releng_8 tinderbox] failure on ia64/ia64

2012-09-21 Thread FreeBSD Tinderbox
TB --- 2012-09-22 04:47:11 - tinderbox 2.9 running on freebsd-legacy2.sentex.ca TB --- 2012-09-22 04:47:11 - FreeBSD freebsd-legacy2.sentex.ca 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2012-09-22 04