add search path names
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 6 Mar 1989 14:01:17 +0000 (06:01 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 6 Mar 1989 14:01:17 +0000 (06:01 -0800)
SCCS-vsn: bin/csh/csh.c 5.9
SCCS-vsn: bin/csh/pathnames.h 5.2

usr/src/bin/csh/csh.c
usr/src/bin/csh/pathnames.h

index e7715ac..9be6dca 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char *sccsid = "@(#)csh.c       5.8 (Berkeley) %G%";
+static char *sccsid = "@(#)csh.c       5.9 (Berkeley) %G%";
 #endif
 
 #include "sh.h"
 #endif
 
 #include "sh.h"
@@ -24,7 +24,7 @@ static char *sccsid = "@(#)csh.c      5.8 (Berkeley) %G%";
  * April 1980
  */
 
  * April 1980
  */
 
-char   *pathlist[] =   { ".", "/usr/ucb", "/bin", "/usr/bin", 0 };
+char   *pathlist[] =   { ".", _PATH_UCB, _PATH_BIN, _PATH_USRBIN, 0 };
 char   *dumphist[] =   { "history", "-h", 0, 0 };
 char   *loadhist[] =   { "source", "-h", "~/.history", 0 };
 char   HIST = '!';
 char   *dumphist[] =   { "history", "-h", 0, 0 };
 char   *loadhist[] =   { "source", "-h", "~/.history", 0 };
 char   HIST = '!';
index 81879a3..36ff590 100644 (file)
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
- *     @(#)pathnames.h 5.1 (Berkeley) %G%
+ *     @(#)pathnames.h 5.2 (Berkeley) %G%
  */
 
  */
 
+#define        _PATH_BIN               "/bin"
 #define        _PATH_DOTCSHRC          "/etc/csh.cshrc"
 #define        _PATH_DOTLOGIN          "/etc/csh.login"
 #define        _PATH_DOTLOGOUT         "/etc/csh.logout"
 #define        _PATH_LOGIN             "/bin/login"
 #define        _PATH_DOTCSHRC          "/etc/csh.cshrc"
 #define        _PATH_DOTLOGIN          "/etc/csh.login"
 #define        _PATH_DOTLOGOUT         "/etc/csh.logout"
 #define        _PATH_LOGIN             "/bin/login"
+#define        _PATH_UCB               "/usr/ucb"
+#define        _PATH_USRBIN            "/usr/bin"