trcmain: use new $termprog variable - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 1889a2578366ca17b4fee0b0641b4db183efd383
 (DIR) parent 1670a244d90342023fd84cee9fc01347aaed8abc
 (HTM) Author: Steve McCoy <mccoyst@gmail.com>
       Date:   Tue, 13 Aug 2013 12:46:38 -0400
       
       rcmain: use new $termprog variable
       
       R=rsc
       CC=plan9port.codebot
       https://codereview.appspot.com/12505045
       
       Diffstat:
         M CONTRIBUTORS                        |       1 +
         M rcmain                              |       2 +-
       
       2 files changed, 2 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/CONTRIBUTORS b/CONTRIBUTORS
       t@@ -44,6 +44,7 @@ Roger Peppe <rogpeppe@gmail.com>
        Russ Cox <rsc@swtch.com>
        Sean McKean <smckean83@gmail.com>
        Shenghou Ma <minux.ma@gmail.com>
       +Steve McCoy <mccoyst@gmail.com>
        Ties Bos <gitbisector@gmail.com>
        Tim Newsham <tim.newsham@gmail.com>
        Tony Lainson <t.lainson@gmail.com>
 (DIR) diff --git a/rcmain b/rcmain
       t@@ -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