Skip to content

chore(demo): fall back to cat when bat is not installed - #197

Open
maxgio92 wants to merge 2 commits into
mainfrom
docs/limitations
Open

maxgio92 wants to merge 2 commits into
mainfrom
docs/limitations

Conversation

@maxgio92

@maxgio92 maxgio92 commented Sep 13, 2026

Copy link
Copy Markdown
Owner

The demo scripts run with set -euo pipefail and called bat directly, so a host without it aborted every demo at the first source listing. Each script now shows sources through a small helper that uses bat when present and cat otherwise.

bash -n is clean on all five scripts; shellcheck reports only the pre-existing SC2068 on the main $@ lines, which #193 fixes.

The demo scripts run with set -euo pipefail and called bat directly, so
a host without it aborted the demo at the first source listing.
@maxgio92 maxgio92 changed the title fix(demo): fall back to cat when bat is not installed chore(demo): fall back to cat when bat is not installed Sep 13, 2026
The recorded prompt line printed showSrc, a name that exists only inside
the script, and the helper was copied into all five demos. Pick cat or
bat once at start-up and expand it at the call site, with paging off so
bat does not block the recording.
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.

1 participant