check_dependencies doesn't check exec status nor for awk/sed #463

Closed
opened 2025-12-29 01:25:43 +01:00 by adam · 0 comments
Owner

Originally created by @krayon on GitHub (Mar 16, 2020).

check_dependencies uses command -v to determine the path (and presence) of
various binaries, it does not however check their execution status.

In the event PATH contains a matching name, but it is NOT executable,
command -v will still return it, so we must check for it's ability to be
executed.

Also, awk and sed aren't checked for which are used a fair bit.

Originally created by @krayon on GitHub (Mar 16, 2020). `check_dependencies` uses `command -v` to determine the path (and presence) of various binaries, it does not however check their execution status. In the event `PATH` contains a matching name, but it is NOT executable, `command -v` will still return it, so we must check for it's ability to be executed. Also, `awk` and `sed` aren't checked for which are used a fair bit.
adam closed this issue 2025-12-29 01:25:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#463