line 168 says: "if [ $# == 0 ] ; then" this is a bashism, or a C-ism. sh expects "if [ $# = 0 ] ; then" - the bash version will cause sh to grumble Regards, Lothar