NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/38327: uu{en,de}code - any reason to use non-portable [sg]etprogname?
> On Sat, 29 Mar 2008, Aleksey Cheusov wrote:
>> There is no reason to use __progname or argv[0] or anything similar in
>> uu{en,de}code. Constant strings "uuencode" and "uudecode" are enough
>> because they are used only for printing a usage message.
>
> Try this:
>
> $ cp -p /usr/bin/uuencode /tmp/foobar
> $ /tmp/foobar
> usage: foobar [-m] [infile] remotefile
>
> If we followed your sugestion, the usage message would have referred to
> "uuencode" instead of "foobar".
Is there anybody who call uuencode as foobar? :)
Seriously, if an independance of executable name is really your goal,
close this PR.
Anyway I'm waiting for USE_FEATURE+=[sg]etprogname in pkgsrc to remove
these patches.
--
Best regards, Aleksey Cheusov.
Home |
Main Index |
Thread Index |
Old Index