Commits

Steve McCoy committed eb88483

rcmain: use new $termprog variable

R=rsc
CC=plan9port.codebot
https://codereview.appspot.com/12505045

Committer: Russ Cox <rsc@swtch.com>

Comments (0)

Files changed (2)

 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>
 	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