X-Git-Url: https://projects.mako.cc/source/muttjump/blobdiff_plain/870af1457c0ce75da37b3607ad6191d8580d33ef..c10abd8adcc70058a2389ee7fe24748496d6ecfc:/muttjump?ds=sidebyside 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