Use "type" instead of "command -v"

Bug #996285 reported by Daniel Hahler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byobu
Fix Released
Low
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 http://stackoverflow.com/questions/7277680/find-a-command-on-path

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

Committed revision 1960.

Changed in byobu:
status: In Progress → Fix Committed
Changed in byobu:
status: Fix Committed → Fix Released
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.