rcmain: use new $termprog variable

R=rsc
CC=plan9port.codebot
https://codereview.appspot.com/12505045
This commit is contained in:
Steve McCoy 2013-08-13 12:46:38 -04:00 committed by Russ Cox
parent 1670a244d9
commit 1889a25783
2 changed files with 2 additions and 1 deletions

View file

@ -44,6 +44,7 @@ Roger Peppe <rogpeppe@gmail.com>
Russ Cox <rsc@swtch.com> Russ Cox <rsc@swtch.com>
Sean McKean <smckean83@gmail.com> Sean McKean <smckean83@gmail.com>
Shenghou Ma <minux.ma@gmail.com> Shenghou Ma <minux.ma@gmail.com>
Steve McCoy <mccoyst@gmail.com>
Ties Bos <gitbisector@gmail.com> Ties Bos <gitbisector@gmail.com>
Tim Newsham <tim.newsham@gmail.com> Tim Newsham <tim.newsham@gmail.com>
Tony Lainson <t.lainson@gmail.com> Tony Lainson <t.lainson@gmail.com>

2
rcmain
View file

@ -23,7 +23,7 @@ if(! ~ $#cflag 0){
exit $status exit $status
} }
if(flag i){ if(flag i){
if(~ $TERM 9term){ if(~ $termprog 9term || ~ $termprog win){
fn cd { fn cd {
# builtin cd $1 && flag i && awd # builtin cd $1 && flag i && awd
# is not sufficient when running in a subshell # is not sufficient when running in a subshell