rc: ignore $cdpath for # device rooted paths (thanks kivik)
This commit is contained in:
parent
05021e0579
commit
1a55b8d1f0
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ execcd(void)
|
||||||
pfmt(err, "Usage: cd [directory]\n");
|
pfmt(err, "Usage: cd [directory]\n");
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
if(a->next->word[0]=='/' || cdpath==0)
|
if(a->next->word[0]=='/' || a->next->word[0]=='#' || cdpath==0)
|
||||||
cdpath = &nullpath;
|
cdpath = &nullpath;
|
||||||
for(; cdpath; cdpath = cdpath->next){
|
for(; cdpath; cdpath = cdpath->next){
|
||||||
if(cdpath->word[0] != '\0')
|
if(cdpath->word[0] != '\0')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue