From 1ac25b72dccae9a365bcb39f1b81c6d42d2702fc Mon Sep 17 00:00:00 2001 From: tg Date: Tue, 13 Feb 2007 13:36:18 +0000 Subject: [PATCH] add a note about the default $PATH --- main.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index e04134f..f4840cc 100644 --- a/main.c +++ b/main.c @@ -13,7 +13,7 @@ #include #endif -__RCSID("$MirOS: src/bin/mksh/main.c,v 1.69 2007/02/10 21:59:15 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/main.c,v 1.70 2007/02/13 13:36:18 tg Exp $"); extern char **environ; @@ -142,6 +142,14 @@ main(int argc, char *argv[]) def_path = cp; else #endif + /* + * this is uniform across all OSes unless it + * breaks somewhere; don't try to optimise, + * e.g. add stuff for Interix or remove /usr + * for HURD, because e.g. Debian GNU/HURD is + * "keeping a regular /usr"; this is supposed + * to be a sane 'basic' default PATH + */ def_path = "/bin:/usr/bin:/sbin:/usr/sbin"; #endif