diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-10-26 09:52:05 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-10-26 09:52:05 +0200 |
commit | 1a55b8d1f0253b4d39b1972978b469a352f0f94b (patch) | |
tree | e193d82e2b77c7ecae3f4208c57488c8d0ce46d5 /sys/src/cmd/rc | |
parent | 05021e057945ef77b585b1835397f59bd3381282 (diff) |
rc: ignore $cdpath for # device rooted paths (thanks kivik)
Diffstat (limited to 'sys/src/cmd/rc')
-rw-r--r-- | sys/src/cmd/rc/simple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/rc/simple.c b/sys/src/cmd/rc/simple.c index a29359866..bfe75410c 100644 --- a/sys/src/cmd/rc/simple.c +++ b/sys/src/cmd/rc/simple.c @@ -159,7 +159,7 @@ execcd(void) 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') |