Skip to content

Fix printf escape sequence interpretation in showhardware.sh#10

Closed
Copilot wants to merge 2 commits intoUpdated-scripts-and-readme-2026-Febfrom
copilot/sub-pr-8-again
Closed

Fix printf escape sequence interpretation in showhardware.sh#10
Copilot wants to merge 2 commits intoUpdated-scripts-and-readme-2026-Febfrom
copilot/sub-pr-8-again

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 25, 2026

printf without a format specifier does not interpret \n backslash escapes, so the $HEADER and $FOOTER variables were printing literal \n strings instead of newlines.

Changes

  • showhardware.sh: Replaced all bare printf "$HEADER ... $FOOTER" calls with printf "%b" "$HEADER ... $FOOTER" — the %b format specifier is the POSIX-portable way to enable backslash escape interpretation in printf
# Before
printf "$HEADER System Information $FOOTER"

# After
printf "%b" "$HEADER System Information $FOOTER"

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…interpretation

Co-authored-by: andreak3779 <11012375+andreak3779@users.noreply.github.com>
Copilot AI changed the title [WIP] Update shell configuration instructions in README Fix printf escape sequence interpretation in showhardware.sh Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants