From: Philipp Takacs Date: Sun, 14 Aug 2016 22:11:39 +0000 (+0200) Subject: fix whatnow2 send X-Git-Tag: mmh-0.3~1 X-Git-Url: http://git.marmaro.de/?p=mmh;a=commitdiff_plain;h=9481ba13dc70acb0b7ab32c0d251ec608532d89b fix whatnow2 send in the last commit whatnow2 send was changed to keep the metafile. This don't work with the ``exec send''. Now the send() is renamed to sendfunktion and the ``exec'' is removed. --- diff --git a/uip/whatnow2.sh b/uip/whatnow2.sh index 2e3cf12..7ddebea 100755 --- a/uip/whatnow2.sh +++ b/uip/whatnow2.sh @@ -148,7 +148,7 @@ list() exec $mhshowproc -file $mhdraft } -send() +sendfunktion() { export mhaltmsg=`anno -list -component 'mhaltmsg' $mhmetafile` export mhdist=`anno -list -component 'mhdist' $mhmetafile` @@ -156,7 +156,7 @@ send() export mhfolder=`anno -list -component 'mhfolder' $mhmetafile` export mhmessages=`anno -list -component 'mhmessages' $mhmetafile` export mhannotate=`anno -list -component 'mhannotate' $mhmetafile` - exec send "$@" $mhdraft || exit $? + send "$@" $mhdraft || exit $? rm -f $mhmetafile exit 0 } @@ -262,7 +262,7 @@ l|li|lis|list) list ;; s|se|sen|send) - send "$@" + sendfunktion "$@" ;; del|dele|delet|delete) [ $# -eq 0 ] || usage 1