X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fwhatnow2.sh;h=00a40e1bb8f8b372ff45ea3324c177754395da3a;hp=a4a2cc5dc77469c1fd994957b19bb394e01222bb;hb=69aecfa8763593b903e6e180f20343a9d27db078;hpb=f154b393795d008e105ad63570e1f83bcccc6243 diff --git a/uip/whatnow2.sh b/uip/whatnow2.sh index a4a2cc5..00a40e1 100755 --- a/uip/whatnow2.sh +++ b/uip/whatnow2.sh @@ -38,7 +38,7 @@ usage() exit 0 fi printhelp 1>&2 - exit $1 + exit 1 } get_editor() @@ -213,7 +213,7 @@ display() { mhaltmsg=`anno -list -component 'mhaltmsg' $mhmetafile` get_showproc - if [ -n "$mhaltmsg" ] + if [ -z "$mhaltmsg" ] then echo "no altmsg" 1>&2 exit 1 @@ -263,7 +263,7 @@ l|li|lis|list) s|se|sen|send) send "$@" ;; -del|dele|delet) +del|dele|delet|delete) [ $# -eq 0 ] || usage 1 delete ;; @@ -293,4 +293,7 @@ w|wh|who|whom) -V|-Ve|-Ver|-Vers|-Versi|-Versio|-Version) version $# ;; +*) + usage 1 + ;; esac