Skip to content

fix(help): bypass any cat alias/functions in help output#25

Merged
guodong-sq merged 1 commit intoblock:mainfrom
bezhermoso:bezalel/fewer-cats
Feb 27, 2026
Merged

fix(help): bypass any cat alias/functions in help output#25
guodong-sq merged 1 commit intoblock:mainfrom
bezhermoso:bezalel/fewer-cats

Conversation

@bezhermoso
Copy link
Contributor

@bezhermoso bezhermoso commented Feb 25, 2026

The bat CLI is a very common cat alternative that, among many things like syntax highlighting, provides an auto-paging feature:

alias cat='bat --paging=auto' # OR bat --paging=always

Unfortunately, each invocation of cat can trigger a separate pager session, breaking the help output into fragmented pages.

Fix: Invoke the actually cat binary from $PATH by using command cat, bypassing any aliases or functions.

@guodong-sq guodong-sq merged commit 1943d7b into block:main Feb 27, 2026
4 checks passed
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