I understand that if I write my own shell scripts I maybe should use
command -v instead, but this is not for my own shell scripts, but for
compatibility with BSD and Mac.
Den mån 17 aug. 2020 kl 20:47 skrev Erik Gustafsson <
ekir.gustafs...@gmail.com>:
> I took Teemus very good sugge
I took Teemus very good suggestion and changed [-a] to [-as] now :)
https://salsa.debian.org/debian/debianutils/-/merge_requests/6/diffs#ed04ff4dabf1e2d4cd6b89136c2b24dec27ecca4_21_24
Is there anything more I should change?
Who can merge? :)
Den fre 14 aug. 2020 kl 16:07 skrev Simon McVittie :
Hi!
The "which" command is part of debianutils. On BSD and Mac, this command on
Mac/BSD has a -s flag, for silent, when used it does not print, just return
0 if program found in $PATH or 1 otherwise. See man-page for FreeBSD
https://www.freebsd.org/cgi/man.cgi?which(1)
This "which" is heavily use
3 matches
Mail list logo