Commit e3a75d0
Cut xtrace noise from POSIX-ownership diagnostic steps
The "Show POSIX file ownership" step in each test workflow looped
over a hard-coded path list with one `ls -ld` per iteration. Bash's
xtrace -- active throughout (from `~/.bash_profile` on Cygwin and
from the `-x` flag in GHA's default shell line on Ubuntu / macOS /
Alpine) -- reprints the entire `for` expression's expanded word list
at the start of every iteration. For nine paths that's nine long
traces of the same word list, drowning out the `ls -ld` output we
want to read.
Collapse the loop into a single multi-arg `ls -ld --`: xtrace prints
the expanded command line once, `ls` produces one line per existing
path and a `ls: cannot access '<path>': No such file or directory`
line per missing path. `2>&1` merges those missing-path messages
into the log stream alongside the existing-path output; `|| true`
keeps the step from failing under `set -e` when any path is missing.
The format of missing-path reporting changes from `(missing: <path>)`
to `ls: cannot access '<path>': No such file or directory`. Both
convey the same information; the new form is slightly more verbose
per missing path but eliminates the per-iteration trace reprint that
dominated the original output.
Cosmetic-only; no change to the diagnostic information surfaced.
Flagged on PR #2154 as a follow-up:
#2154 (review)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 48f73f8 commit e3a75d0
3 files changed
Lines changed: 9 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 73 | + | |
| 74 | + | |
77 | 75 | | |
78 | 76 | | |
79 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 101 | + | |
| 102 | + | |
105 | 103 | | |
106 | 104 | | |
107 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 104 | + | |
| 105 | + | |
108 | 106 | | |
109 | 107 | | |
110 | 108 | | |
| |||
0 commit comments