builtin exit status on write failure

2007-04-29 Thread Eric
Configuration Information [Automatically generated, do not change]: Machine: i686 OS: cygwin Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='cygwin' -DCONF_MACHTYPE='i686-pc-cygwin' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -

Re: Bash arithmetic doesn't give error message on wrap.

2007-04-29 Thread Richard Neill
Bob Proulx wrote: Richard Neill wrote: b)Consistent with other cases, where bash does give warnings. For example: $ X=$((3+078)) bash: 3+078: value too great for base (error token is "078") $ echo $? 1 That is not really a comparable case. The problem there is that the leading zero specif

Re: Bash arithmetic doesn't give error message on wrap.

2007-04-29 Thread Bob Proulx
Richard Neill wrote: > b)Consistent with other cases, where bash does give warnings. For example: > > $ X=$((3+078)) > bash: 3+078: value too great for base (error token is "078") > $ echo $? > 1 That is not really a comparable case. The problem there is that the leading zero specifies an octal