[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#852451: ITP: rname -- invoke a program under a different name



[2017-01-24 17:19] Peter Pentchev <roam@ringlet.net>
>
> part 1     text/plain                1214
> Package: wnpp
> Severity: wishlist
> Owner: Peter Pentchev <roam@ringlet.net>
>
> * Package name    : rname
>   Version         : 1.0.2
>   Upstream Author : Peter Pentchev <roam@ringlet.net>
> * URL             : https://devel.ringlet.net/sysutils/rname/
> * License         : BSD-2-clause
>   Programming Lang: C
>   Description     : invoke a program under a different name
>
> The rname utility invokes a specified program, passing a different name
> instead of the name of the program executable.  This could be useful in
> a number of cases, both during software development, testing, and in
> production use.  There are many programs that do different things based
> on what name they have been invoked under; the rname utility avoids
> the need to e.g. create ephemeral symlinks to run these programs in
> some conditions when they have not been completely installed.
>
> I originally wrote this tool in 2000 and I'm resurrecting it now for
> the purpose of writing unit and integration tests for just such
> a multifaceted program.

One more argv0 implementation? I know at least two:

$ dpkg -S argv0
ucspi-tcp: /usr/bin/argv0
[...]
$ dpkg -S chpst
runit: /usr/bin/chpst
[...]

Probably, there is already a lot.

-- 
X-Web-Site: https://sinsekvu.github.io | Note that I process my email in batch,
Accept-Languages: eo,ru,en             | at most once every 24 hours. If matter
Accept: text/plain, text/x-diff        | is urgent, you have my phone number.

Attachment: pgpjZ4Qcr_IKF.pgp
Description: PGP signature


Reply to: