ref: 1a55b8d1f0253b4d39b1972978b469a352f0f94b
parent: 05021e057945ef77b585b1835397f59bd3381282
author: cinap_lenrek <[email protected]>
date: Fri Oct 26 05:52:05 EDT 2018
rc: ignore $cdpath for # device rooted paths (thanks kivik)
--- a/sys/src/cmd/rc/simple.c
+++ b/sys/src/cmd/rc/simple.c
@@ -159,7 +159,7 @@
pfmt(err, "Usage: cd [directory]\n");
break;
case 2:
- if(a->next->word[0]=='/' || cdpath==0)
+ if(a->next->word[0]=='/' || a->next->word[0]=='#' || cdpath==0)
cdpath = &nullpath;
for(; cdpath; cdpath = cdpath->next){
if(cdpath->word[0] != '\0')