docs(test): note which bash the pty test covers on which machine

The rcfile installs its hook into PROMPT_COMMAND as an array only on
bash 5.1 and up, and appends to a string below that — a version check
inherited from bash-preexec. macOS still ships 3.2.57, so a developer run
takes the older branch and a Linux CI runner takes the newer one.

Neither machine covers both, which is worth saying in the test rather
than leaving for someone to work out from a passing run.
This commit is contained in:
l0ng-ai
2026-08-23 19:41:00 +08:00
parent 608c3c48e1
commit 07fcbdb0ba
@@ -2130,6 +2130,13 @@ mod tests {
/// `zsh_reports_the_full_prompt_cycle_over_a_real_pty` gives: the empty
/// sentinel is what stops the injected rc guarding itself off inside a
/// tty7 pane.
///
/// Worth knowing what this covers where: the rcfile installs its hook into
/// `PROMPT_COMMAND` as an array only on bash 5.1 and up, and appends to a
/// string below that. macOS still ships 3.2.57, so a developer run here
/// exercises the older branch and a Linux CI runner exercises the newer
/// one — between them both halves of that version check are run, which
/// neither machine does alone.
#[cfg(unix)]
#[test]
fn bash_reports_the_full_prompt_cycle_over_a_real_pty() {