Use "type" instead of "command -v"

Bug #996285 reported by Daniel Hahler on 2012-05-08
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dustin Kirkland 

Bug Description

I've run into a problem, where "command" is not available:

    BusyBox v1.16.1 (2012-04-13 04:26:57 CST) built-in shell (ash)

On the other hand, the builtin "type" is available there.

I am not sure if "command -v" can be safely replaced by "type" anywhere, or if a more general approach should be taken, where a wrapper function would be used and could use different methods according to what is required on the specific system.

"type" found via

Changed in byobu:
assignee: nobody → Dustin Kirkland (kirkland)
importance: Undecided → Low
status: New → In Progress
Dustin Kirkland  (kirkland) wrote :

Committed revision 1960.

Changed in byobu:
status: In Progress → Fix Committed
Changed in byobu:
status: Fix Committed → Fix Released
Keith Hughitt (keith-hughitt) wrote :

Still having the same issue with 5.35 and zsh. Know if the patch made it into that release?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers