Sh

From PortaWiki

Jump to: navigation, search

"for i ; do" is not portable

sh does not support "=="

using logical operators with "test"

The -a and -o logical operators in test are not universally supported. For maximum portability (especially configure scripts) use || or && instead. ie instead of

if test "$a" = "foo" -o "$b" = "bar"; then

use

if test "$a" = "foo" || test "$b" = "bar"; then

Personal tools