I would like to contribute to debianutils

Erik Gustafsson ekir.gustafsson at gmail.com
Thu Jul 4 16:48:27 UTC 2019


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: which
Type: application/octet-stream
Size: 1164 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20190704/4d903b04/attachment.obj>


More information about the Ubuntu-devel-discuss mailing list