|
54 | 54 | platform keys and the Apple SDK in `toolchain-model`, the terminal and key |
55 | 55 | input in `src/ui`, the home's lock and trust check in `mcpp.home.files`. |
56 | 56 | The one primitive kept per system is the lock every release of mcpp takes |
57 | | - (`src/native/posix`, `src/native/windows`). |
| 57 | + (`src/native/posix`, `src/native/windows`). A program is found on PATH |
| 58 | + without a shell, with PATHEXT's suffixes on Windows, and the current |
| 59 | + directory is not searched on Windows. A list of directories in an |
| 60 | + environment variable (`PATH`, the run-time library path) is read and written |
| 61 | + with `mcpplibs.os`'s `split_list` and `join_list`: an empty entry is |
| 62 | + skipped, and a quoted entry on Windows is unquoted. |
58 | 63 | - **A program mcpp starts is named by its argument vector.** Compiler probes, |
59 | 64 | git, xlings, tar, strip, patchelf, readelf and vswhere are started without a |
60 | 65 | command interpreter, with their additions to the environment given to them |
|
69 | 74 | watcher thread, which ends the units of the running programs, writes the |
70 | 75 | interrupt files, restores the terminal and ends mcpp as the request would |
71 | 76 | have; the exit codes of §5 are unchanged. A closed standard output ends mcpp |
72 | | - in the same order (141 to a shell on POSIX). |
| 77 | + in the same order (`mcpp … | head`: 141 to a shell on POSIX). Every program |
| 78 | + mcpp starts begins with SIGPIPE at its default, although openkal ignores it |
| 79 | + for its own writes. |
73 | 80 | - **mcpp does not write its own process environment.** Variables mcpp states |
74 | 81 | (its home, `--offline`, a hook's variables, xlings' home and PATH) are this |
75 | 82 | invocation's statements, read by every lookup mcpp makes and given to the |
|
163 | 170 | the common packages each time. A unit's map is now the fixed roots and the |
164 | 171 | roots of its own package's dependency closure. |
165 | 172 |
|
166 | | -### Changed |
167 | | - |
168 | | -- **The operating-system layer is `mcpplibs.os` over openkal.** The platform |
169 | | - constants and the architecture, the executable's own name, PATH lookup, |
170 | | - directory links, renames that refuse an existing name, volume identities, |
171 | | - terminals and console output come from `mcpplibs.os`; what that library |
172 | | - does not carry (the launchers and their signal guard, file locks shared with |
173 | | - earlier releases, durable sync) is one implementation unit per system, |
174 | | - selected by the package manifest. `modules/platform` contains no |
175 | | - preprocessor conditional. `which` no longer starts a shell: a program is |
176 | | - found on PATH, with PATHEXT's suffixes on Windows, and the current |
177 | | - directory is not searched on Windows. A list of directories in an |
178 | | - environment variable (`PATH`, the run-time library path) is read and |
179 | | - written with `mcpplibs.os`'s `split_list` and `join_list`: an empty entry |
180 | | - is skipped, and a quoted entry on Windows is unquoted. |
181 | | -- **A closed reader ends mcpp in order.** `mcpp … | head` stops the guarded |
182 | | - child process groups, writes the interrupt files and restores the terminal, |
183 | | - and then ends by SIGPIPE, with the status a shell has always seen (141). |
184 | | - Every program mcpp starts begins with SIGPIPE at its default, although |
185 | | - openkal ignores it for its own writes. |
186 | | - |
187 | 173 | ## [2026.10.26.1] - 2026-10-26 |
188 | 174 |
|
189 | 175 | ### Added |
|
0 commit comments