{
  "version": 1,
  "note": "The engine this plugin runs bash on. Built from source at a pinned upstream commit plus this repository patch set, because five behaviours this plugin's contract depends on are not upstream in v1.5.1: a cd into /tmp leaves the shell (and every child) where pwd says it is, an unset locale family means UTF-8 character semantics on Windows, the identity tools answer even when no uname/arch program resolves, the command-lookup display names the file the search resolved, and a diagnostic names the reader (bash, or the -c name operand) instead of the engine's install path. A patch file is named `<engine version without the v and the dots>-<ordinal>-<slug>` — this pin's files are `151-001`..`151-005` — so a file name states which pin it belongs to and the ordinal is scoped to that pin; the v1.4.3 set (`143-001`..`143-005`) was retired when upstream merged equivalent implementations, the v1.5.0 set (`150-001`..`150-003`) carried into this pin's numbering, and `patches/rubash/README.md` records every set. A sixth patch — the in-process chmod/mkfifo copy — is parked in `patches/rubash/disabled/`, not applied and still cut for v1.5.0: v1.5.1 answers only part of chmod's shapes and the rest decline to a PATH program this platform cannot have, and its mkfifo creates a marker whose named-pipe rendezvous blocked here, so both names stay `command not found` until upstream completes chmod. `ref` is a commit because a tag can be moved; `tag` records the release it was cut from. `artifact` is the build shipped inside this package: `scripts/build-engine.mjs --refresh` replaces it and rewrites the hash. The hash is the provenance of the shipped bytes, not a reproducible-build promise: replaying the pin and the patches rebuilds the same code but not the same file, so a rebuilt engine is verified behaviourally, by `npm test` and the corpus, never by comparing hashes.",
  "repo": "https://github.com/unixwin/rubash",
  "tag": "v1.5.1",
  "ref": "a8d282571addb4ca0f204c3b47839c409f2fd482",
  "bin": "rubash",
  "patches": [
    "patches/rubash/151-001-cd-into-virtual-roots-with-a-real-directory.patch",
    "patches/rubash/151-002-default-a-unset-locale-family-to-utf-8-on-windows.patch",
    "patches/rubash/151-003-identity-tools-answer-without-a-path-program.patch",
    "patches/rubash/151-004-command-lookup-names-the-real-file.patch",
    "patches/rubash/151-005-diagnostics-name-the-reader-not-the-install-path.patch"
  ],
  "artifact": {
    "path": "engine/win32-x64/rubash.exe",
    "sha256": "1745d3ab11c490f59457197031ffac7fb1da81566bf15199b75722f47104db45",
    "bytes": 15991808
  },
  "why": "rubash is a from-scratch bash 5.3 engine whose own test surface is the GNU upstream suite, so almost everything this repository used to patch (a real PID behind $!, /tmp as an alias, descriptor paths, kill as a builtin, CRLF scripts, select, nameref, read -t, and — since the v1.5.0 release absorbed our reports — data-primary positions for every child class, an environment entry Unicode cannot carry, and the last pipeline member's drains starting before the in-process producer) is correct upstream. v1.5.1 is the GNU differential wave that followed: 782 commits and 703 closed issues between the previous pin and this one, mostly fd/redirection, parser-diagnostic and execution-ordering work, so the surface this plugin depends on moved under it rather than beside it. What the pin still needs is six behaviours v1.5.1 does not have; five are patched here and the sixth is parked. Patch 151-001 makes cd into a virtual root that has a real directory behind it (/tmp, /home) move the SESSION cwd as well: v1.5.1's logical-only bridge writes PWD and the session's logical slot and stops, so every relative operand and every child process stays in the previous directory while pwd reports the new one. Patch 151-002 restores UTF-8 as the default when no LC_ALL/LC_CTYPE/LANG names a locale: v1.5.1 answers the C locale there, so ${#v} counts bytes for a CJK value and [[:alpha:]] misses CJK letters — the character count this plugin's engine verifier states requires the UTF-8 default. Patch 151-003 makes uname/arch answer even when no program of that name resolves: v1.5.1 gates every in-process emulation on PATH resolution, and this package's toolchain publishes neither name (identity is not outsourced to PATH), so the MSYS persona would be unreachable and scripts would get 127. Patch 151-004 keeps the executable suffix in the command-lookup display: v1.5.1 trims the probe suffix, so `command -v grep` answers `/c/.../grep`, a path that names no file in a PATH holding only `grep.exe` (the packaged toolchain publishes no extension-less twin), and the idioms this corpus pins — `cp \"$(command -v grep)\" x` behind `argv-tmp-program-path-executes` — fail; GNU's answer is the execve filename every spawn route hands over unchanged. Patch 151-005 makes the diagnostic name the reader again: v1.5.1 reaches `$0` before the invocation's reader name, and this deployment spawns the engine by absolute path, so every failed command read `D:\\...\\rubash.exe: line 1: ...` where v1.5.0 (and GNU with argv[0]=bash) reports `bash: line 1: ...`; the reader name — the -c name operand or `bash` — outranks the defaulted argv[0] again, while an explicit name and a script/sourced file keep their own. chmod and mkfifo stay `command not found`, and the patch that would answer them is parked in `patches/rubash/disabled/`: v1.5.1's chmod answers only a subset of the modes (every option declines to a PATH program this platform cannot provide, so `chmod -R` and `chmod -w` would answer 127 anyway) and its mkfifo creates a marker whose named-pipe rendezvous blocked on this host, so the patch returns once upstream completes chmod. One upstream defect is KNOWN and not patched here: inside a pipeline member, `> /dev/stdout`, `> /dev/fd/1` and `> /proc/self/fd/1` resolve to the process's standard output instead of that member's current fd 1 (corpus case fd-redirect-descriptor-paths records it as a known gap); upstream owns the fix."
}
