maintain $path and $PATH simultaneously

This commit is contained in:
rsc 2005-01-12 16:59:50 +00:00
parent 7b0c2f155d
commit a9eaaa03e0
5 changed files with 74 additions and 4 deletions

View file

@ -168,7 +168,7 @@ void execcd(void){
if(cdpath==0) pfmt(err, "Can't cd %s: %r\n", a->next->word);
break;
case 1:
a=vlook("home")->val;
a=vlook("HOME")->val;
if(count(a)>=1){
if(dochdir(a->word)>=0)
setstatus("");