# To do Everything found while working on cash that is not done yet, in one list, and the plan for working through it. What is done, phases and findings, is in docs/DONE.md. ## How this is worked - **One session, one item at a time, in the order below.** No further worktrees and no spawned sessions: what is found on the way is added to the phase it belongs to, or to the end, not started beside it. - **The user picks the items** (2026-10-17): before items are started, they go to the user as a pick list, each with what it fixes, the danger of leaving it and the size of the work. The phase is what the user picked. - **Per item:** reproduce it (the code has moved since the item was written down), compare with Git Bash 5.3, fix it with a test that fails without the fix, and commit. A done item moves to docs/DONE.md in the same commit, as it was written down. - **Per phase:** `cargo fmt --all`, `cargo clippy --workspace --all-targets`, the full nextest run (`--profile full --retries 0`, both lanes); then `main` is brought up to the branch and pushed, the phase is released once CI is green, and a short report is written. The next phase starts once the user has picked its items. The work stops only for a decision marked **yours** below, or for a release whose CI fails. - **Releases:** each phase ends with a release of its own. A tag is made only after CI has passed on the commit (docs/RELEASING.md); the releases so far are in docs/DONE.md. - An item says what was seen and what Bash does; a cause only where it was looked for. Longer notes on a thing that stays open belong in `docs/open-issues.md`. --- ## The phase before (2026-11-01, done, released as 2.5.0) Picked by the user from a pick list (docs/decisions.md, "The phase after 2.4.0"), in this order, all in docs/DONE.md: sevenz-rust2 0.24.2's hardening ported to cash's 7z (the header checks, fallible allocation, errors that do not allocate; its other fixes cash's own reader, writer and extraction already had, now with tests); gawk 5.4.0's own test suite run against cash's awk, which fixed six differences (sub's backslashes by gawk's rules, substr's start below 1, fields past NF and empty fields as the null string, a backslash before a CRLF in a string or a regex, program files read as bytes, the file of `getline <` ending before a concatenation) and left 273 of its tests as a corpus case, the 146 others being gawk's own extensions, wording and three edges; D31 narrowed so that a name all in lower case is never read in another case; and a corpus round of tfenv, log4sh, bash_ini_parser and bats-detik, which found no new difference. Left, under "Found along the way": gawk's extensions cash's awk has none of. ## The phase before (2026-10-31, done, released as 2.4.0) Picked by the user from a pick list (docs/decisions.md, "The phase after 2.3.2"), in this order, all in docs/DONE.md: parking_lot 0.13 taken on main by hand (its `const_*` constructors went) and Dependabot's two stale pull requests updated onto main; the winget submission answered at 2.3.2 with the manifest schema version the repository takes; `exit N` in a function the `EXIT` trap calls, which ended the shell with 0; a line typed before `read -t` ran out, kept for the next read as a terminal keeps it; POSIX `TZ` rules with daylight saving in the shell's own times (`date` had them); and a corpus round of git-secrets, pyenv-virtualenv, jenv, goenv, neofetch and shdoc. Found and fixed on the way: an awk function ending in an `if` that holds a `return` ran past its end, awk refused a backslash before CRLF and its `.` matched no newline, a directory's read-only attribute made `-w` false and `rm -rf` fail, `rm link` removed no link to a directory, and a `TMP` in Unix spelling lost every here-string of a cash a cash started. Left, under "Found along the way": a lowercase `${!name}` reading an environment variable (D31). ## The phase before (2026-10-31, done, released as 2.3.2) Picked by the user from a pick list (docs/decisions.md, "The phase after 2.3.1"), in this order, all in docs/DONE.md: the Dependabot bumps taken on main (lzma-rust2 0.24 and rstest 0.28; parse_datetime stays with uu_date, and dependabot.yml says so); `kill %1` on a console job that ignores its Ctrl-Break, terminated after a second now, not five; Windows Console's font after a PowerShell, which Windows PowerShell 5.1 switches to the raster one in a UTF-8 console, and cash puts back at the next prompt; a corpus round of bash-git-prompt, basher, n and fzf's shell integration (bashly's generated scripts are not in its repository); the repository topics, a security policy, a code of conduct and two issue forms; and job control off in an interactive cash run through pipes, with a finished job kept for `jobs` after a plain `wait`. Found and fixed on the way: `complete -p`'s option order, `type -p` of a carried tool, and a program started after the shell's directory was deleted. Left, under "Found along the way": `exit N` in a function the `EXIT` trap calls. ## The phase before (2026-10-30, done, released as 2.3.1) Picked by the user from the stock-taking of 2026-10-30 (docs/decisions.md): the socket state `ss` and `lsof` read on this machine, found making the README's clips (Windows 11 26H2 reports a listener's state as 0 or a connection's; a TCP row without a peer is a listener now, in docs/DONE.md); cash on Scoop's Extras bucket (left waiting: its request form needs 100 stars, docs/listings.md); the upstream changes of issue 14 (`cmp -b`'s padding ported, the rest already as GNU has it, upstreams.toml); and Show HN and Reddit drafts for the user to post (docs/announcements.md). On the way: the README's one-binary pitch and the package descriptions, and the ports clip rendered again with 2.3.1. ## The phase before (2026-10-24, done, released as 2.2.0) Picked by the user: the raw escape codes before the first prompt in Windows Console; PowerShell's `& script.ps1`; items 2 and 5 of the Git Bash comparison below (cash's prompt when none is set, with Git's states; the small defaults); with `cash doctor` naming Scoop and git first, asked for on the way. In docs/DONE.md. ## The phase before (2026-10-23, done, released as 2.0.0) `figlet` (research/figlet-design.md, D84): figlet 2.2.5 and toilet 0.3 in one builtin on the new `cash-figlet` crate, with cash's colour pack, a font picker, pixel and Windows fonts, DEC double-size lines and TheDraw fonts; the sixel image mode dropped. In docs/DONE.md. Released as 2.0.0, a milestone and not a breaking change. ## The phase before (2026-10-23, done, released as 2.1.1) The interpreter's dispatch (D86, research/interpreter-dispatch.md), the user's pick for the rest of the slowdown since 1.39, with the simple-command fix (e9529401): faster than 1.39 on every interpreter workload. The one-command pipeline path was left, with the reason in the research file. In docs/DONE.md. ## The phase before (2026-10-23, done, released as 2.1.0) Picked by the user from the Git Bash comparison below: items 1, 3 and 4 there (Git completion, `~/.inputrc`, Start menu and Explorer), with the starter's help hint the user asked for on the way. In docs/DONE.md. ## Found comparing with Git Bash's own setup (2026-10-23), items 2 and 5 not picked What Git for Windows 2.55 sets up out of the box (`/etc/profile`, `profile.d/*.sh`, `bash.bashrc`, `/etc/inputrc`) that cash lacks. Git itself stays a separate program: none of this is about taking git into cash. cash is ahead on history, `ls` colours and icons, the Terminal profile and shell integration, and needs no winpty. 1. Git completion out of the box: done, in docs/DONE.md. 2. Reaching Git Bash users: the prompt done, in docs/DONE.md. 3. `~/.inputrc` read: done, in docs/DONE.md. 4. Start menu and "Open cash here": done, in docs/DONE.md; the user tried the right-click (2026-10-23: works). At the release that carries it, the bucket's hooks and notes get `scripts/sync-bucket.py` (docs/RELEASING.md step 7). 5. The small ones: done, in docs/DONE.md. `LANG` stays unset where no locale variable is set (the user, 2026-10-24), under "Decided" below. ## The phase before (2026-10-23, done, released as 1.50.0) The small leftovers (docs/decisions.md, "The phase after 1.49.0"), each checked against Git Bash 5.3 first: `find /dev/null`, a RETURN trap after a `.` that cannot open its file, `eval` of a multi-line alias that unaliases itself, GLOBIGNORE with `:` inside brackets. Then a corpus round of makeself, dehydrated, oh-my-bash and nb. Done, in docs/DONE.md, with `find -links`, tar's whole records, `command -v`'s path for a carried tool, `tput` for a dumb terminal and a script waiting for its jobs inside cash (the user's picks); left, below: job control in an interactive cash with no console. ## The phase before (2026-10-23, done, released as 1.49.0) From "Found by the corpus round after 1.41.0" below (docs/decisions.md, "The phase after 1.48.0"), each checked against Git Bash 5.3 first: **Traps, signals and jobs** whole; the small items of **Scripts refused that Bash runs**, **Globbing and conditionals**, **Starting cash** and **Builtins, small**; and the restricted shell. Done, in docs/DONE.md, with a `$BASHPID` for each copy of the shell (docs/decisions.md) and F1 naming `man`; left, below: a RETURN trap after a `.` that cannot open its file, a `set -m` script's finished jobs before `wait`, GLOBIGNORE inside brackets and `find /dev/null`. ## The phase before (2026-10-22, done, released as 1.48.0) The small leftovers (docs/decisions.md, "The phase after 1.47.0"), each checked against Git Bash 5.3 first: `(( A[\$k]++ ))` expanding `$k`, the two nameref cases, an unquoted `${v-$@}` with `IFS=:`, a read-only assignment reported at line 1 of a script, `declare -f` of `$( )` and `elif`, history numbers after HISTSIZE, `-ec -c`. Done, in docs/DONE.md, with `declare -f` words over lines, `set -H` in scripts, traces of lists, `shopt -o`'s width and stable listing orders found on the way; left, below: the nameref warning's count and `${v-$@}` under odd IFS values. ## The phase before (2026-10-21, done, released as 1.47.0) Three themes (docs/decisions.md, "The phase after 1.46.0"), in this order, each item checked against Git Bash 5.3 first. Done, in docs/DONE.md, but for what is left under the themes below: an alias in `$(...)` read in POSIX mode, and `-ec -c`. `#!/bin/sh` running in POSIX mode was put to the user and kept (docs/decisions.md). 1. The leftovers of the themes done: arithmetic (single quotes, assignment's precedence), associative keys holding `]`, `[i]+=v` in a list, `${#/}`, the `EOF)` warning, the small builtins left (`hash -p`, `declare -f -a`, more usage errors), `set -a` with `declare`, `set -u` in `$(( a[0] ))`, `exec 0&2` was found to be as Bash has it, and the self-unaliasing one is left (below); 7, functions printed that did not read back; 8, a syntax error inside `$(...)`, but for the end found twice (below). ## The phase before (2026-10-21, done, released as 1.45.0) Taken as recommended while the user was away, as the user asked (docs/decisions.md, "The phase after 1.44.0"); the user may change it. The small builtins, each against Git Bash 5.3, in this order. Done, in docs/DONE.md: 1, `help` of the reserved words, and a plain word as a prefix; 2, `complete -p`'s `!` and `compgen -V`'s name; 3, the usage errors; 4, `history` with history off, `-d` ranges and `-p` failures; 5, `declare -f +r`. ## The phase before (2026-10-21, done, released as 1.44.0) Taken as recommended while the user was away, as the user asked (docs/decisions.md, "The phase after 1.43.0"); the user may change it. In this order. Done, in docs/DONE.md: 1, conditionals (`=~` with a quoted part, `[[ -t X ]]`), but for `['a]']` (below); 2, globbing, but for the few below; 3, `touch` going on past an operand it cannot touch; 4, the last phase's small leftovers, `read -n -1` and `eval` and `source` holding their redirections, but for `[i]+=v` in a list (it needs the list's words to carry `+=`, which they do not) and a key holding `]` for `[[ -v A[$k] ]]` (both below). ## The phase before (2026-10-21, done, released as 1.43.0) The user's pick from the themes below (docs/decisions.md, "The phase after 1.42.0"), in this order. Done, in docs/DONE.md: 1, loop control (`break`, `continue`, `return`, `exit`); 2, `read` with a mixed IFS and escapes, and `mapfile -d ''`; 3, `exec` and the redirection state, but for `exec 0