bug-coreutils
[Top][All Lists]
Advanced

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

Re: Question about adding a tiny tool into GNU coreutils


From: Pádraig Brady
Subject: Re: Question about adding a tiny tool into GNU coreutils
Date: Thu, 07 Jan 2010 00:54:35 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0

On 06/01/10 20:02, Jim Meyering wrote:
Daniel Borkmann wrote:
I was wondering if it's possible to add a tiny little program (next to
true and false ;) ) into the gnu coreutils package? The program I've
written is called "errno" and does nothing less than writing an error
string according to the user-specified error number.

Very often, programs or kernel modules only show/log a return value, but
not the actual error message, so you manually have to look it up. This
_tiny_ tool helps doing this automatically ;)

I think it would rather fit into the coreutils than having it's own
distribution package. What do you think? (Source attached)

Well it is something I often want to lookup which I do with:
strerror() { python -c "import os; print os.strerror($1)"; }

Previously I used a shell script:
http://www.pixelbeat.org/scripts/strerror

It's one of those marginal cases.
Because I mainly need it when developing I'd be
inclined not to include it as a separate util.
Perhaps it's something for the contrib directory
we've previously mentioned.

cheers,
Pádraig.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]