Repository navigation
Commit 1e836dc
test(shared): run the DEBUG trap regression test without system startup files
The bash DEBUG trap regression test ran `bash -ilc` with a temporary HOME,
so the host's /etc/profile, /etc/profile.d and /etc/bash.bashrc ran too. On
GitHub's Ubuntu runner its ~/.bash_profile never took effect and the test
failed. Run the probe command as non-interactive `bash -c` with BASH_ENV
pointing at the test's file instead: that is the only startup file bash
reads in that mode, and the trap still echoes every probe command.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent cc9837c commit 1e836dc
1 file changed
Lines changed: 6 additions & 4 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
125 | 126 | | |
126 | | - | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
137 | | - | |
138 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
139 | 141 | | |
140 | | - | |
| 142 | + | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| |||
0 commit comments