-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: ksh93: some iffe and SHOPT.sh streamlining
In ksh93/Mamfile there are four iffe invocations that don't run a script but run one 'def' command directly from the iffe command line. The 'def' command causes 8 probes to be run (per iffe --man): def name Equivalent to cmd,dat,hdr,key,lib,mth,sys,typ name. This was quite inefficient as only one or two of them were used. The process is streamlined by eliminating the individual iffe invocations and adding only the probes whose results are actually used to FEATURE/options (the test for sys/acct.h) and FEATURE/externs (the rest). The execargs.h probe and the code depending on it (in main.c) are removed as this is only relevant for the PDP-11 (RIP, 1970-1997). This commit also has a bugfix for SHOPT.sh processing in ksh93/Mamfile. It was not effective to set SHOPT_GLOBCASEDET to 0 on systems where case-insensitive file systems are detected (e.g. macOS). The fix is to include FEATURE/options in shopt.h after, not before, the SHOPT.sh-based defines.
- Loading branch information
Showing
5 changed files
with
19 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,6 @@ tst note{ can we probe file system case insensitivity }end output{ | |
return !r; | ||
} | ||
}end | ||
|
||
# for SHOPT_ACCT: | ||
sys acct |
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