Skip to content

v1.5.3

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Dec 16:31
· 90 commits to master since this release
2d53d34

What's Changed

  • fix(expand): single-quote backslash is data — one pass_next quote-state rule (rubash#4195) by @caomengxuan666 in #4201
  • fix(ci,expand): add PR rustfmt gate, fix repo-stats, and close diagnostic-guard UAF by @caomengxuan666 in #4212
  • perf(cond): upgrade [[ =~ ]] regex cache to 64-entry Rc LRU and drop fabricated Regex error by @caomengxuan666 in #4213
  • refactor(windows): unify Win32 extern declarations onto windows-sys and re-enable clashing_extern_declarations by @caomengxuan666 in #4214
  • fix(locale): keep synced locale variables thread-local instead of mutating process env by @caomengxuan666 in #4215
  • fix(windows,fd): close Winsock SOCKET handles via closesocket instead of CloseHandle by @caomengxuan666 in #4216
  • refactor(executor): isolate external command emulation behind ExternalCommandBackend seam by @caomengxuan666 in #4220
  • refactor(lint): remove unreachable_patterns, unused_mut, and unused_assignments allows from lib.rs by @caomengxuan666 in #4218
  • refactor(executor): deduplicate builtin dispatch boilerplate across primary, late, no-alias, and direct faces by @caomengxuan666 in #4223
  • refactor(executor): split 9,740-line compound_exec.rs into 7 cohesive submodules by @caomengxuan666 in #4224
  • refactor(lint): remove final crate-level dead_code allow from src/lib.rs by @caomengxuan666 in #4226
  • refactor(signals): extract signal runtime infrastructure from builtins/kill.rs into src/signals/ by @caomengxuan666 in #4221
  • refactor(tests): consolidate 1,661 top-level issue*.rs tests into 17 grouped integration crates by @caomengxuan666 in #4219
  • chore(cargo,ci): update MSRV to 1.91 and align release.yml with check-rustfmt and --locked by @caomengxuan666 in #4217
  • test(fault-injection): add 4-arm deterministic fault-injection differential harness (Refs #2811) by @caomengxuan666 in #4083
  • fix(fd): close env-stamp carriers and skip unclaimed fd adoption on internal respawns (Fixes #4045) by @caomengxuan666 in #4050
  • fix(executor): match GNU bash xtrace and diagnostic interleaving (#4036) by @caomengxuan666 in #4051
  • fix(cd,cwd): refresh cwd anchor whenever cd commits chdir even when path string matches (Fixes #4089) by @caomengxuan666 in #4117
  • fix(coproc,parser): resolve coproc pipe-read retirement, dead-write group survival, and simple-command procsub word (Fixes #4088) by @caomengxuan666 in #4119
  • fix(patterns): quoted pattern characters stay literal in all four pattern paths by @caomengxuan666 in #4137
  • fix(fc): return Erange when last_hist < 0 instead of wrapping to usize::MAX by @dingyi580 in #4233
  • fix(history-expand): prevent integer overflow panics in event and word specifiers by @dingyi580 in #4234
  • fix(pushd,popd): prevent signed overflow and index underflow on double-signed offsets by @dingyi580 in #4235
  • fix(printf): fall back to epoch 0 on out-of-range %(...)T timestamps by @dingyi580 in #4236
  • fix(mapfile): enforce GNU unsigned int bounds and valid_number parsing on numeric options by @dingyi580 in #4237
  • fix(ulimit): decode UTF-8 chars in option scanner instead of Latin-1 byte widening by @dingyi580 in #4238
  • fix(parser): skip $'...' ANSI-C quotes when scanning compound assignment spans by @dingyi580 in #4239
  • fix(trap): stop option scanning after leading -- separator by @dingyi580 in #4240
  • fix(alias): reject semicolon and align alias name validation with GNU valid_alias_name by @dingyi580 in #4241
  • fix(comsub): serve inherited process stdin in $(&lt;/dev/stdin) quick-read instead of falling through to CONIN$ (Fixes #4229) by @caomengxuan666 in #4244
  • fix(fd): protect symbolic stdio backing fds from persistent placement and pre_exec aliasing (Fixes #4091) by @caomengxuan666 in #4245
  • fix(locale): use try_with on TLS accesses to prevent abort during Executor::drop teardown (Fixes #4228) by @caomengxuan666 in #4230
  • fix(exec,fd): gate persistent OS fd mutations on process_replacement_enabled to spare host fds (Fixes #4225) by @caomengxuan666 in #4231
  • fix(parser,executor): stamp per-occurrence comsub site frame for redirect words (Fixes #4197) by @caomengxuan666 in #4242
  • fix(declare,readonly): match GNU DISCARD abort and single-line diagnostic for -g and same-scope readonly compound assignments (Fixes #4160) by @caomengxuan666 in #4243
  • fix(session,script_driver): gate die_by_signal and tail exec replacement on process ownership (Refs #4211) by @caomengxuan666 in #4246
  • refactor(signals,lint): resolve post-#4221/#4226 dead_code warnings and remove builtins::kill allow (Refs #4206) by @caomengxuan666 in #4250
  • docs: add dingyi580, ShiomiHC, xuangeyouneihan to contributors by @caomengxuan666 in #4256
  • fix(redir): unify RX_UNDOABLE move verdict across respawn payload faces and async compound roots (Fixes #4046) by @caomengxuan666 in #4251
  • fix(lint): gate Executor::owns_process_image accessor on #[cfg(unix)] (Refs #4206, #4211) by @caomengxuan666 in #4258
  • fix(fc): align sole-current-entry index clamp and fc -s rejection with GNU fc.def (Fixes #4247) by @caomengxuan666 in #4257
  • fix(lint): gate var_table freshness accessors on debug_assertions by @caomengxuan666 in #4261
  • fix(expand): decode ANSI-C quotes in compound assignment parameter-operator words (Fixes #4248) by @caomengxuan666 in #4259
  • fix(procsub,redir): separate BrokenPipe from EBADF and inherit runtime SIG_IGN across procsub respawn (Fixes #4255) by @caomengxuan666 in #4260
  • fix(exec,declare): model GNU this_command_name lifecycle for expansion-time declaration diagnostics (Fixes #4161) by @caomengxuan666 in #4263
  • fix(heredoc,lexer): emit comsub EOF warning independent of cat-plan admission and advance batch gather lines (Fixes #4166) by @caomengxuan666 in #4264
  • fix(exec,path): validate ELF header structure before pre-exec ENOEXEC bypass (Refs #3605, #4203) by @caomengxuan666 in #4265
  • fix(fd,unix): prefer cwd_anchor_fd over path spelling in spawn_whitelisted (Refs #3420, #4203) by @caomengxuan666 in #4267
  • test(ci): align 6 oracle-verified stale pins with GNU 5.3.20 and burn down 4 ci-pin-exclusions stems (Refs #4203) by @caomengxuan666 in #4268
  • fix(exec): model GNU this_command_name lifecycle for for/select/arith-for loop heads (Fixes #4266) by @caomengxuan666 in #4269
  • test(param-transform): isolate per-test scratch paths to kill the shared-probe race by @caomengxuan666 in #4275
  • fix(exec): quoted "$*" joins with IFS[0] under a null IFS in every word position (Refs #4273) by @caomengxuan666 in #4277
  • fix(complete): compgen -G returns literal-path matches and globs under set -f (Refs #4272) by @caomengxuan666 in #4278
  • test(issue4254): pin arithmetic-error diagnostics following function stderr redirects by @caomengxuan666 in #4280
  • fix(fd): serialize move_to_high_fd's probe-and-dup2 under a process lock by @caomengxuan666 in #4283
  • test(issue4227): pin case-syntax-error token selection by @caomengxuan666 in #4281
  • fix(exec): entry-poisoned shells store no logical cwd so cd prints the chdir line by @caomengxuan666 in #4282
  • Fix compound-assignment field split of decoded $'…' blanks in mixed-quote elements (Refs #4200) by @caomengxuan666 in #4286
  • fix(glob,cond): protect full GNU glob-char class at [[ == ]] and pathname-glob boundaries (Fixes #4126) by @caomengxuan666 in #4262
  • test(regression): re-record errors/exp upstream-suite snapshots (Refs #4288) by @caomengxuan666 in #4289
  • fix(jobs): reader-boundary notice pass retires without a retained link (Refs #4288) by @caomengxuan666 in #4290
  • fix(redir): redirection_error diagnostics honor gnu_errfmt (Refs #1038, #4203) by @caomengxuan666 in #4287
  • test: burn down 29 green regression pin stems by @caomengxuan666 in #4291
  • fix(jobs): remove 5-char PID padding in wait signal death notice (#4279) by @caomengxuan666 in #4292
  • fix(redir): materialize undo-save slot saturation EMFILE diagnostics (Fixes #4043) by @caomengxuan666 in #4057
  • fix(parser): reject stray ')' inside if command clauses (#4285) by @caomengxuan666 in #4293
  • fix(executor): gate MZ direct-exec classification on Windows (#4271) by @caomengxuan666 in #4294
  • fix(finish): hand persistent procsub bodies to a detached child at exit (#4296) by @caomengxuan666 in #4298
  • test(ci): restore 16 Linux-red stems in ci-pin-exclusions (split from #4295) by @caomengxuan666 in #4299
  • test(census): pin redirect-target arithmetic error as a single diagnostic, not ambiguous redirect by @caomengxuan666 in #4302
  • docs(api-ledger): record the eight faces niubash#1132 consumes by @caomengxuan666 in #4308
  • fix(executor): emulated cat under a compound redirect writes through the live fd-1 binding (#4301) by @caomengxuan666 in #4306
  • fix(executor): compound redirect arithmetic error no longer double-reports or leaks the latch by @caomengxuan666 in #4314
  • Fix the dynamic fd-var redirect walk continuing past an arithmetic error by @caomengxuan666 in #4309
  • fix(case): honor the failglob verdict before opening a case redirect target by @caomengxuan666 in #4316
  • fix(executor): fd-var walk undoes its own binds on open failure by @caomengxuan666 in #4317
  • docs(api-ledger): record the rubash::api::HistoryProvider spelling (niubash#1134) by @caomengxuan666 in #4318
  • chore(release): rubash 1.5.3 by @caomengxuan666 in #4319
  • test(ci): restore 16 Linux-red stems in ci-pin-exclusions and align #4181 pin with #4088 (Refs #4203, #4181) by @caomengxuan666 in #4295
  • fix(exec): never drain inherited stdin for /proc fd operands; enumerate fd dirs (niubash#1147) by @caomengxuan666 in #4321
  • docs(readme): sync and trim README.md and README.zh-CN.md for v1.5.3 by @caomengxuan666 in #4320
  • perf(executor): materialize fd-0 procsub bodies collected for mapfile/readarray drain forms by @caomengxuan666 in #4329
  • perf(readonly): O(1) mark check in apply_readonly_arg instead of full list render by @caomengxuan666 in #4327
  • perf: dedup read-time comsub screen walk per body source — quoted nested comsub no longer exponential by @caomengxuan666 in #4330
  • perf(help): skip the glob matcher for literal topic patterns by @caomengxuan666 in #4336
  • perf: no arithmetic evaluation may charge O(#variables) (Refs #4323) by @caomengxuan666 in #4337
  • perf: admit let operands to the #607 fast ticket (Refs #4338) by @caomengxuan666 in #4340
  • perf: literal subscript fast lane; -v verdict streams, no mirror clone (Refs #4334) by @caomengxuan666 in #4341
  • perf(executor): collapse the redirect setup walks (Refs #4325) by @caomengxuan666 in #4342
  • perf: foreground waits block in waitpid, not 10 ms slices (Refs #4332) by @caomengxuan666 in #4339
  • fix(executor): allow the unix-only-read cwd-anchor memo field on non-unix targets (Refs #4325) by @caomengxuan666 in #4343
  • perf(expansion): probe before materializing the process env on a lookup miss (Refs #4333) by @caomengxuan666 in #4344
  • fix(lexer): quoted case subject breaks first arm's multi-line array (niubash#1152) by @caomengxuan666 in #4345
  • fix(windows): clear HANDLE_FLAG_INHERIT on the shell's own std handles by @caomengxuan666 in #4347
  • fix(lexer): mirror the Windows CRLF strip in the continuation probe (niubash#1153) by @caomengxuan666 in #4348
  • docs(api-ledger): record Session::views (niubash#1131 census backfill) by @caomengxuan666 in #4349
  • perf(executor): one-pass child-environment construction (Refs #4350) by @caomengxuan666 in #4352
  • test(pty): wait for initial prompt output to settle before sending line 1 in script(1) harnesses (Fixes #4351) by @caomengxuan666 in #4354
  • fix(parser,executor): skip nested expansions inside double quotes during extglob scans (Fixes #4346) by @caomengxuan666 in #4353
  • test(coproc): pin gnu_errfmt gating for coproc input redirect word expansion errors (Refs #4297) by @caomengxuan666 in #4355
  • test(regression): isolate snapshot scratch dirs, drive normalization, and slice scheduling (Refs #4038) by @caomengxuan666 in #4357
  • fix(redir): honor exec 1>&- inside compound-redirected scripts and fail closed-stdout writes (#4307) by @caomengxuan666 in #4356

New Contributors

Full Changelog: v1.5.2...v1.5.3