On Mon, 25 Apr 2011, Steve Beattie wrote: > Note that in Ubuntu and Debian, /bin/sh is dash, not bash, which is > more strict in its posix sh(1) conformance ('==' for string > comparisons is a bashism). Login shells by default use bash, but > shell scripts, unless explicitly using bash via "#!/bin/bash" will > by default be interpreted by dash. > > The checkbashisms script from the devscripts package on Debian and > Ubuntu will highlight issues for you.
You can also include "set -o posix" toward the top of your bash scripts to help enforce POSIX compliance. -- Paul Heinlein <> heinl...@madboa.com <> http://www.madboa.com/ _______________________________________________ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug