On 5/25/06, linux-ha-cvs@lists.linux-ha.org
<linux-ha-cvs@lists.linux-ha.org> wrote:
linux-ha CVS committal
Author : davidlee
Host :
Module : linux-ha
Dir : linux-ha
Modified Files:
bootstrap
Log Message:
Stricter Bourne-shell compliance
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/bootstrap,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -3 -r1.27 -r1.28
--- bootstrap 3 May 2006 07:54:38 -0000 1.27
+++ bootstrap 25 May 2006 20:18:14 -0000 1.28
@@ -40,11 +40,12 @@
#
# The ERR trap is not executed if the failed command is part
# of an until or while loop, part of an if statement, part of a &&
- # or || list, or if the command's return value is being inverted
- # via !.
+ # or || list.
actually i think i pasted that directly from the bash man-page...
if
- ! which $WHICH_OPTS $cmd </dev/null >/dev/null 2>&1
+ which $WHICH_OPTS $cmd </dev/null >/dev/null 2>&1
then
+ :
+ else
return 1
fi
_______________________________________________
Linux-ha-cvs mailing list
Linux-ha-cvs@lists.linux-ha.org
http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/