tmore searchpath-related changes - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit de39860a2a2cadf8ede07817c2530a521aed1491
(DIR) parent 7c604f0ddf394fa9f24b48df54c4c44d9533ec7c
(HTM) Author: rsc <devnull@localhost>
Date: Sun, 23 Jan 2005 23:19:47 +0000
more searchpath-related changes
Diffstat:
M man/man1/0intro.1 | 1 +
M src/cmd/rc/rc.h | 1 +
M src/cmd/rc/simple.c | 2 +-
3 files changed, 3 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/man/man1/0intro.1 b/man/man1/0intro.1
t@@ -331,6 +331,7 @@ network in
.IR notify (3),
.IR post9pservice (3),
.IR rfork (3),
+.IR searchpath (3),
.IR sendfd (3),
.IR udpread (3),
.IR wait (3),
(DIR) diff --git a/src/cmd/rc/rc.h b/src/cmd/rc/rc.h
t@@ -28,6 +28,7 @@
#endif
#undef pipe /* so that /dev/fd works */
+#define searchpath rcsearchpath /* avoid new libc function */
typedef struct tree tree;
typedef struct word word;
(DIR) diff --git a/src/cmd/rc/simple.c b/src/cmd/rc/simple.c
t@@ -100,7 +100,7 @@ void doredir(redir *rp)
word *searchpath(char *w){
word *path;
if(strncmp(w, "/", 1)==0
- || strncmp(w, "#", 1)==0
+/* || strncmp(w, "#", 1)==0 */
|| strncmp(w, "./", 2)==0
|| strncmp(w, "../", 3)==0
|| (path=vlook("path")->val)==0)