Bash scripts may misbehave if SHELLOPTS is exported and 'monitor' is enabled

2007-01-03 Thread David Picton
I have noticed that a few scripts misbehave if SHELLOPTS is exported, or defined in the environment before bash is first invoked. (I had set SHELLOPTS=igncr in the system environment - but I've backed this out to avoid the problems). The problems seem to be caused by incorrect signal handling.

Re: Bash scripts may misbehave if SHELLOPTS is exported and 'monitor' is enabled

2007-01-03 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to David Picton on 1/3/2007 6:44 AM: It turned out that the problem has something to do with the 'monitor' option being enabled. Normally it would be turned off in noninteractive scripts, but if SHELLOPTS is in the environment the