Skip to content

Commit ae06f8e

Browse files
committed
Use executable-find to locate bash in SIGWINCH tests
Searches PATH instead of hardcoding /bin/bash and /usr/bin/bash, so non-standard installs (Nix, Homebrew) also get picked up.
1 parent e5582d5 commit ae06f8e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

test/ghostel-test.el

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2181,9 +2181,7 @@ ncurses apps like htop at start-up size and breaks live resize."
21812181
(< (float-time) deadline))
21822182
(accept-process-output proc 0.05))))
21832183

2184-
(defconst ghostel-test--bash
2185-
(cond ((file-executable-p "/bin/bash") "/bin/bash")
2186-
((file-executable-p "/usr/bin/bash") "/usr/bin/bash"))
2184+
(defconst ghostel-test--bash (executable-find "bash")
21872185
"Absolute path to bash, or nil if not found.
21882186
The baseline SIGWINCH tests explicitly use bash because trap-on-signal
21892187
behavior for an idle shell reading stdin differs across implementations

0 commit comments

Comments
 (0)