On Wed, Feb 25, 2015 at 12:29 PM, Jeff Squyres (jsquyres) < jsquy...@cisco.com> wrote:
> /me wishes yet again that shell scripting had a "strict" mode that would > yell at you when you use "$foop" instead of "$foo" (and $foop doesn't > exist/was never set). See http://redsymbol.net/articles/unofficial-bash-strict-mode/ In particular read about "set -u". I know "dash" and the Solaris shell also support this, but don't know how wide spread it is. This would be a maintainer-only thing, since one cannot safely assume support is present. You would probably also find that the standard AC_ and AM_ macros have "sloppy" coding practices. -Paul -- Paul H. Hargrove phhargr...@lbl.gov Computer Languages & Systems Software (CLaSS) Group Computer Science Department Tel: +1-510-495-2352 Lawrence Berkeley National Laboratory Fax: +1-510-486-6900