-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rm redundant hardcoded default paths (re: aa4669a)
As of aa4669a, astconf("PATH") is implemented as a hardcoded AST configuration variable that always has a value, instead of one that falls back on the OS. Its value is now obtained from the OS (with a fallback) at configure time and not at runtime. This means that any fallback for astconf("PATH") is now never used. src/cmd/ksh93/data/msg.c, src/cmd/ksh93/include/shell.h: - Remove e_defpath[]. (The path "/bin:/usr/bin:" made no sense as a default path anyway, as the final empty element is wrong: default utilities should never be sought in the current working dir.) src/cmd/ksh93/sh/path.c, src/lib/libast/path/pathbin.c: - abort() if astconf("PATH") returns null. src/lib/libast/comp/conf.tab: PATH: - If no 'getconf' utility can be found, use a fallback path that finds more utilities by also searching in 'sbin' directories. On some systems, this is needed to find chown(1). src/cmd/ksh93/sh.1: - Update doc re default path.
- Loading branch information
Showing
6 changed files
with
6 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters