From 415f42489f6efbac8edaa154f9e8ded5ab25bf35 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 5 May 2013 21:04:11 +0200 Subject: [PATCH] Fix bash's default value for PATH --- src/bin/bash/config-top.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/bin/bash/config-top.h b/src/bin/bash/config-top.h index 66c4676c73..d1db3f8ddf 100644 --- a/src/bin/bash/config-top.h +++ b/src/bin/bash/config-top.h @@ -54,7 +54,9 @@ /* The default value of the PATH variable. */ #ifndef DEFAULT_PATH_VALUE #define DEFAULT_PATH_VALUE \ - ".:/boot/home/config/bin:/bin:/boot/apps:/boot/preferences" \ + ".:/boot/home/config/non-packaged/bin:/boot/home/config/bin" \ + ":/boot/common/non-packaged/bin:/boot/common/bin" \ + ":/bin:/boot/apps:/boot/preferences" \ ":/boot/system/apps" \ ":/boot/system/preferences" #endif @@ -63,7 +65,10 @@ the Posix.2 confstr () function, or CS_PATH define are not present. */ #ifndef STANDARD_UTILS_PATH #define STANDARD_UTILS_PATH \ - "/bin:/usr/bin:/sbin:/usr/sbin:/etc:/usr/etc" + ":/boot/common/non-packaged/bin:/boot/common/bin" \ + ":/bin:/boot/apps:/boot/preferences" \ + ":/boot/system/apps" \ + ":/boot/system/preferences" #endif /* Default primary and secondary prompt strings. */