coreutils
coreutils copied to clipboard
Cross-platform Rust rewrite of the GNU coreutils
Similar to 9541, the statx() calls are using full paths ``` $ mkdir x/y/z -p && touch x/y/z/f $ strace ./target/debug/rm -r x [...] statx(AT_FDCWD, "/home/jak/Projects/Ubuntu/uutils/x", AT_STATX_SYNC_AS_STAT|AT_SYMLINK_NOFOLLOW, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID, stx_attributes=0,...
As of 3b0f47d1fda630be08209dd6ebfbe5723a3ecef9 from earlier today: ``` $ mkdir -p x/y/z $ strace ./target/debug/chmod -R +x x statx(AT_FDCWD, "x/y/z", AT_STATX_SYNC_AS_STAT|AT_SYMLINK_NOFOLLOW, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFDIR|0775, stx_size=6, ...}) = 0 statx(AT_FDCWD, "x/y/z",...
fix https://github.com/uutils/coreutils/issues/9264
Add a new function `ensure_stdin_open()` that uses the `nix` crate to check if stdin is open before attempting to read from it. This prevents potential errors when stdin is closed,...
### Summary Remove the extra leading rm: from the rm-error-preserve-root-all locale strings so the message matches expected test output. Keep wording otherwise unchanged across en-US and fr-FR locales. #9127
- Add dev-dependencies for divan and uucore with benchmark features to Cargo.toml - Include a new benchmark harness for timeout_bench - Optimize signal lookups using OnceLock for KILL and CONT...