X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fwhatnow2.sh;h=00a40e1bb8f8b372ff45ea3324c177754395da3a;hp=f8778b1b6461f4131332e77a2e14d94138b97fd1;hb=69aecfa8763593b903e6e180f20343a9d27db078;hpb=8a5c71467df0cdfe96b6dcdca94eec5c787fcdf8 diff --git a/uip/whatnow2.sh b/uip/whatnow2.sh index f8778b1..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 @@ -230,7 +230,7 @@ fi command=$1 shift -draftfolder="mhparam draftfolder" +draftfolder=`mhparam draftfolder` mhdraft=`mhpath $draftfolder c 2>/dev/null` if [ -z "$mhdraft" ] @@ -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