ref: e0d9c7fc7ce51dfed311271235b7fb8adbb83401
parent: ff6aeede13f578999b2bd1f0ec5770cdf6fe7555
	author: cinap_lenrek <cinap_lenrek@felloff.net>
	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')
--
⑨