aboutsummaryrefslogtreecommitdiff
path: root/rcmain
diff options
context:
space:
mode:
authorSteve McCoy <mccoyst@gmail.com>2013-08-13 12:46:38 -0400
committerRuss Cox <rsc@swtch.com>2013-08-13 12:46:38 -0400
commit1889a2578366ca17b4fee0b0641b4db183efd383 (patch)
treecbf99b402c59e67c75517dc4c091376548dcb1d7 /rcmain
parent1670a244d90342023fd84cee9fc01347aaed8abc (diff)
downloadplan9port-1889a2578366ca17b4fee0b0641b4db183efd383.tar.gz
plan9port-1889a2578366ca17b4fee0b0641b4db183efd383.tar.bz2
plan9port-1889a2578366ca17b4fee0b0641b4db183efd383.zip
rcmain: use new $termprog variable
R=rsc CC=plan9port.codebot https://codereview.appspot.com/12505045
Diffstat (limited to 'rcmain')
-rw-r--r--rcmain2
1 files changed, 1 insertions, 1 deletions
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