From 1889a2578366ca17b4fee0b0641b4db183efd383 Mon Sep 17 00:00:00 2001 From: Steve McCoy Date: Tue, 13 Aug 2013 12:46:38 -0400 Subject: [PATCH] rcmain: use new $termprog variable R=rsc CC=plan9port.codebot https://codereview.appspot.com/12505045 --- CONTRIBUTORS | 1 + rcmain | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index c49c9cdb..b62df5cc 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -44,6 +44,7 @@ Roger Peppe Russ Cox Sean McKean Shenghou Ma +Steve McCoy Ties Bos Tim Newsham Tony Lainson diff --git a/rcmain b/rcmain index 448de029..461cb3ec 100644 --- a/rcmain +++ b/rcmain @@ -23,7 +23,7 @@ if(! ~ $#cflag 0){ exit $status } if(flag i){ - if(~ $TERM 9term){ + if(~ $termprog 9term || ~ $termprog win){ fn cd { # builtin cd $1 && flag i && awd # is not sufficient when running in a subshell