Skip to content

show-utils.sh: remove dependency on jq - #14947

Draft
oech3 wants to merge 1 commit into
uutils:mainfrom
oech3:show-utils
Draft

oech3 wants to merge 1 commit into
uutils:mainfrom
oech3:show-utils

Conversation

@oech3

@oech3 oech3 commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@xtqqczze

Copy link
Copy Markdown
Collaborator

why, jq is more common, no?

@xtqqczze

Copy link
Copy Markdown
Collaborator

Oh jaq is a re-write in Rust, good to know.

@xtqqczze

Copy link
Copy Markdown
Collaborator

jq comes pre-installed in most environments such as GitHub actions runners, so I don't see the benefit of the change.

@oech3

oech3 commented Sep 29, 2026 via email

Copy link
Copy Markdown
Contributor Author

@xtqqczze

Copy link
Copy Markdown
Collaborator

Relates to #9581.

@xtqqczze

Copy link
Copy Markdown
Collaborator

Sorry, I don't see the logic in replacing jq with jaq here.

@oech3

oech3 commented Sep 29, 2026 via email

Copy link
Copy Markdown
Contributor Author

@oech3
oech3 force-pushed the show-utils branch 2 times, most recently from b380aa8 to ca78ee8 Compare September 29, 2026 14:05
Comment thread util/show-utils.sh
echo "WARN: missing \`jq\` (install with \`sudo apt install jq\`); falling back to default (only fully cross-platform) utility list" 1>&2
echo "$default_utils"
if test "$*";then
_args=("$@")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By the way, in POSIX sh, arrays are undefined (see SC3030), although this script already requires Bash, so this doesn't introduce an additional portability concern.

@xtqqczze

Copy link
Copy Markdown
Collaborator

jq has a dependency on the oniguruma package, which will be removed from FreeBSD's repo soon.

That's no longer the case. The deprecation was removed because there are still many consumers of oniguruma, and they are not expected to move away from it anytime soon. See FreshPorts.

@oech3
oech3 marked this pull request as draft October 1, 2026 14:07

This branch has not been deployed

No deployments
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