You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Change] coreutils: command cat prefix across 26 bare cat sites — el6 PATH portability
Project Shell Standards (parent CLAUDE.md) require `command` prefix on
all coreutils in project source to resolve via PATH for portability
across pre-usr-merge distros (CentOS 6 has /bin/cat, not /usr/bin/cat).
This commit closes the bare-`cat` advisory item carried in MEMORY since
2026-04-06.
26 sites across 11 files:
files/internals/lmd_alert.sh 7 sites
files/internals/lmd_sigs.sh 7 sites
files/internals/lmd_session.sh 8 sites
files/internals/lmd_monitor.sh 4 sites
files/internals/lmd_quarantine.sh 4 sites
files/internals/lmd_scan.sh 3 sites
files/internals/lmd_update.sh 4 sites
files/internals/lmd_engine.sh 1 site
files/internals/lmd_config.sh 1 site
files/maldet 1 site
install.sh 1 site
Forms covered: anchored `cat "$f" > "$o"` (statement-level),
`$(cat "$f")` (subshell capture), `$(cat "$f" 2>/dev/null)`
(suppression-wrapped), `&& cat "$f" >> "$o"` (mid-line after &&),
heredoc-substitution `$(cat "$f")` (inside double-quoted strings).
Word-boundary grep `\bcat\b | grep -v 'command cat'` now empty
across LMD source — only `files/maldet:240 cat<<EOF` remains, which
is the heredoc form exempt by project rule and project verification
grep (`^\s*cat\s(?!<<)`).
Vendored libraries (alert_lib.sh:309, tlog_lib.sh:441) unchanged —
fix upstream, not in-tree. No functional change; bash -n passes
across all touched files.
0 commit comments