summaryrefslogtreecommitdiff
path: root/Userland/Shell
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-08-20 17:01:53 +0200
committerLinus Groh <mail@linusgroh.de>2022-08-23 19:00:04 +0100
commit39a3775f4870fb16b49fec24aa5fd506b17a0ea9 (patch)
tree2cd49be1c6563988cf74a67599437d57c7014f67 /Userland/Shell
parent61e18c681baacca25dffadeab688730402b6c443 (diff)
downloadserenity-39a3775f4870fb16b49fec24aa5fd506b17a0ea9.zip
Userland: Rely on a single authoritative source for the default `PATH`
Diffstat (limited to 'Userland/Shell')
-rw-r--r--Userland/Shell/Shell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Shell/Shell.cpp b/Userland/Shell/Shell.cpp
index b558e84b59..6a8fdc3d62 100644
--- a/Userland/Shell/Shell.cpp
+++ b/Userland/Shell/Shell.cpp
@@ -2189,7 +2189,7 @@ Shell::Shell()
path.append({ path_env_ptr, strlen(path_env_ptr) });
if (path.length())
path.append(":"sv);
- path.append("/usr/local/sbin:/usr/local/bin:/usr/bin:/bin"sv);
+ path.append(DEFAULT_PATH_SV);
setenv("PATH", path.to_string().characters(), true);
}