Repository navigation
Add two-letter subcommand aliases and descriptive command listings - #107
Merged
tlindner merged 1 commit intoNov 5, 2026
Merged
Conversation
tlindner
added a commit
to tlindner/toolshed
that referenced
this pull request
Nov 13, 2026
GCC on Linux thought a command name could be 1023 bytes and overflow the 64-byte arguments buffer, and -Werror failed the build (main fails the same way since nitros9project#107). The lengths are now checked, as in os9commandtest, which also fails the test if the arguments are ever cut off. Co-Authored-By: Claude Opus 5.5 <[email protected]>
tlindner
added a commit
that referenced
this pull request
Nov 14, 2026
* Fix three decb bugs: raw kill, case-blind copy and rename
- kill on a raw path ("image,") succeeded and erased the first directory
entry, leaking its granules. It is now refused with EOS_BPNAM.
- copy's duplicate check compared names with case, though lookups ignore
it, so copying to foo.txt over FOO.TXT made a second entry that could
not be read back. It now refuses (or with -r replaces) the file.
- rename looked for its file with case, so "rename img,foo.txt NEW"
failed with EOS_BPNAM for FOO.TXT. It now renames the entry
_decb_open found, and its name clash check ignores case while letting
a file change only the case of its own name.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* commandaliastest: check snprintf lengths for GCC's -Wformat-truncation
GCC on Linux thought a command name could be 1023 bytes and overflow the
64-byte arguments buffer, and -Werror failed the build (main fails the
same way since #107). The lengths are now checked, as in os9commandtest,
which also fails the test if the arguments are ever cut off.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Use MinGW's C99 printf for Windows builds
Since the CI runner moved to ubuntu-26.04, the mingw-w64 cross compiler
checks printf formats against the old msvcrt rules, which don't know
%zx, and -Werror failed the Windows package in cocodump.c. Defining
__USE_MINGW_ANSI_STDIO=1 for WIN builds gives the C99 printf, so the
%zu and %lld used across the tools work and are checked as such.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* dump: print sizes with %ll, which MinGW's printf check accepts
The Windows package still failed: the CI runner's move to ubuntu-26.04
brought mingw-w64 13 headers, under which GCC checks fprintf as ms_printf
even with __USE_MINGW_ANSI_STDIO=1, and ms_printf knows h, l, ll, L, I32,
I64 and I but not z. The dump offsets and the extra byte count are now
cast to unsigned long long and printed with %llx and %llu, which every
compiler here accepts, and the ineffective define is taken back out.
Dump output is unchanged in every format.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.