$NetBSD: patch-aa,v 1.1 2003/05/13 23:33:02 salo Exp $ --- samples/Xmessage.orig 2001-04-10 17:33:50.000000000 +0200 +++ samples/Xmessage 2003-05-14 00:09:14.000000000 +0200 @@ -19,7 +19,7 @@ FONT="--fixed-font" TIMEOUT="" -if [ "$1" == "" ] ; then +if [ "$1" = "" ] ; then echo "usage: Xmessage [-options] [message] where options include: @@ -93,7 +93,7 @@ # We cannot emulate the "-buttons" option, so give up and use the true "xmessage" # if this option was specified in the command line... -if [ "$BUTTONS" == "true" ] ; then +if [ "$BUTTONS" = "true" ] ; then echo "Buttons related options (-buttons, -default, -print) not supported," echo "invoking \"xmessage\" intead..." 1>&2 xmessage "$OPTIONS" @@ -107,7 +107,7 @@ # the textbox or the tailbox. # # So first start Xdialog as an asynchronous process... - if [ "$FILE" == "" ] ; then + if [ "$FILE" = "" ] ; then echo "$TEXT" | \ Xdialog --title "$TITLE" --wmclass "$WMCLASS" $PLACEMENT $FONT --no-cancel \ --tailbox "-" $YSIZE $XSIZE & @@ -125,7 +125,7 @@ while (( $TIMEOUT > 0 )) ; do sleep 1 STILL_THERE=`ps | awk --source "$SOURCE"` - if [ "$STILL_THERE" == "" ] ; then + if [ "$STILL_THERE" = "" ] ; then exit 0 fi let TIMEOUT=$TIMEOUT-1 @@ -135,7 +135,7 @@ exit 0 else # No timeout, just start Xdialog synchronously then... - if [ "$FILE" == "" ] ; then + if [ "$FILE" = "" ] ; then echo "$TEXT" | \ Xdialog --title "$TITLE" --wmclass "$WMCLASS" $PLACEMENT $FONT --no-cancel \ --tailbox "-" $YSIZE $XSIZE