From: Johannes Weißl Date: Mon, 29 Nov 2010 14:46:29 +0000 (+0100) Subject: even shorter solution X-Git-Url: https://projects.mako.cc/source/muttjump/commitdiff_plain/c10abd8adcc70058a2389ee7fe24748496d6ecfc?ds=sidebyside even shorter solution by Erik Christiansen --- diff --git a/muttjump b/muttjump index 8ff2625..e2f04ec 100755 --- a/muttjump +++ b/muttjump @@ -143,7 +143,7 @@ if [ "$MUTTJUMP_USE_SCREEN" = no ] ; then # mutt behaves different if STDIN is no terminal # TODO: Find cleaner solution (e.g. mutt command-line argument?) exec 0<&- - term="/dev/$(ps -p$$ | awk 'END { print $2 }')" + term="/dev/$(ps -p$$ -otty=)" exec < $term # start mutt, open original folder and jump to the original message