summaryrefslogtreecommitdiff
path: root/shells/tcsh/patches/patch-ai
blob: f847cc66082caf2bfed5eaa78f0857f7902b63bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ai,v 1.1 1998/09/08 22:36:34 tron Exp $

--- sh.c.orig	Sat Oct  5 11:39:07 1996
+++ sh.c	Tue Sep  8 09:58:52 1998
@@ -648,7 +648,11 @@
      * Re-initialize path if set in environment
      */
     if ((tcp = getenv("PATH")) == NULL)
+#ifdef _PATH_DEFPATH
+	importpath(str2short(_PATH_DEFPATH));
+#else /* !_PATH_DEFPATH */
 	setq(STRpath, defaultpath(), &shvhed, VAR_READWRITE);
+#endif /* _PATH_DEFPATH */
     else
 	/* Importpath() allocates memory for the path, and the
 	 * returned pointer from SAVE() was discarded, so