Hi! The "which" command is part of debianutils. On BSD and Mac, this command on Mac/BSD has a -s flag, which is basically, silent, and return 0 if program found in $PATH or 1 otherwise
This which is heavily used at the company where I work, for java development etc like which -s java || echo "You have to install java to run this program" FreeBSD man-page https://www.freebsd.org/cgi/man.cgi?which(1) We have many shellscripts using this, but unfortunately they don't work on GNU/Linux, only on Mac and BSD. The current version of "which" supplied with Debian is written in shellscript https://salsa.debian.org/debian/debianutils/blob/master/which To make my Debian installation compatible with "which -s" in shellscripts I would like to contribute the -s flag to debianutils. I have already made a working implementation, which I am happy to improve on as needed. (attach with this email) I will also make an updated man-page How can I get started to contribute to debianutils? Should I have an account on https://salsa.debian.org/debian/debianutils ? Can someone else contribute this code for me, once I get it to reach a good quality level of code and documentation? I found this email address by typing apt-cache show debianutils , in the Maintainer field Best regards, -Erik
which
Description: Binary data
-- Ubuntu-devel-discuss mailing list Ubuntu-devel-discuss@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss