From c10abd8adcc70058a2389ee7fe24748496d6ecfc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Wei=C3=9Fl?= Date: Mon, 29 Nov 2010 15:46:29 +0100 Subject: [PATCH 1/1] even shorter solution by Erik Christiansen --- muttjump | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5