Re: exported SHELLOPTS gives error message from sh

2011-10-11 Thread Chet Ramey
On 10/6/11 2:54 PM, Len Giambrone wrote: > Bash Version: 4.1 > Patch Level: 10 > Release Status: release > > Description: > The man page states: > >SHELLOPTS > A colon-separated list of enabled shell options. Each word in > the list is a valid argument for

Re: exported SHELLOPTS gives error message from sh

2011-10-10 Thread Chet Ramey
> On Mon, Oct 10, 2011 at 11:06:16AM -0400, Len Giambrone wrote: > > I understand that. But if you change all your scripts to use > > > > #!/bin/bash > > instead of > > #!/bin/sh > > > > your scripts will fail when bash isn't installed. > > If you use bash features in your script, then you must

Re: exported SHELLOPTS gives error message from sh

2011-10-10 Thread Greg Wooledge
On Mon, Oct 10, 2011 at 11:06:16AM -0400, Len Giambrone wrote: > I understand that. But if you change all your scripts to use > > #!/bin/bash > instead of > #!/bin/sh > > your scripts will fail when bash isn't installed. If you use bash features in your script, then you must ensure that the scr

Re: exported SHELLOPTS gives error message from sh

2011-10-10 Thread Len Giambrone
I understand that. But if you change all your scripts to use #!/bin/bash instead of #!/bin/sh your scripts will fail when bash isn't installed. -Len On Oct 10, 2011, at 8:24 AM, Greg Wooledge wrote: On Thu, Oct 06, 2011 at 02:54:56PM -0400, Len Giambrone wrote: Many people now use sh and b

Re: exported SHELLOPTS gives error message from sh

2011-10-10 Thread Greg Wooledge
On Thu, Oct 06, 2011 at 02:54:56PM -0400, Len Giambrone wrote: > Many people now use sh and bash interchangeably. That is wrong. Those people need to learn that sh and bash are NOT interchangeable.

exported SHELLOPTS gives error message from sh

2011-10-08 Thread Len Giambrone
Configuration Information [Automatically generated, do not change]: Machine: i386 OS: darwin10.8.0 Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='darwin10.8.0' -DCONF_MACHTYPE='i386-apple-darwin10.8.0' -DCONF_VENDOR='apple' -DLOCALEDIR='/usr/local/share/