powscript icon indicating copy to clipboard operation
powscript copied to clipboard

Use `command -v` instead of `which` in `require_cmd`

Open fcard opened this issue 6 years ago • 3 comments

See https://stackoverflow.com/a/677212/6750494

tl:dr is that which is expensive and can change behaviors depending on OS, while command -v is a builtin and POSIX.

fcard avatar Sep 04 '18 14:09 fcard

I rebased this so it's merge-able again, I waited until the other PR was merged because that fixed the tests.

fcard avatar Sep 28 '20 17:09 fcard

Hey, I really like this project, may this comment be someone that still needs something this light bc they don't like straight up shell

BitterSweetcandyshop avatar Aug 24 '22 06:08 BitterSweetcandyshop

I actually have been working on something to help with this because I had reached a dead end. Hopefully news will come soon, @BitterSweetcandyshop

(edit: "this" as in, the whole project, not this feature in particular)

fcard avatar Aug 28 '22 00:08 fcard