Re: [dev] sbase: logname

2013-06-19 Thread Christoph Lohmann
Greetings. On Wed, 19 Jun 2013 21:11:32 +0200 "Galos, David" wrote: > > Maybe now? > > I would: > > * submit as a patch > * write a manpage > * add usage > * eprintf something upon failure. That’s exactly how I would accept the patch. Sincerely, Christoph Lohmann

Re: [dev] sbase: logname

2013-06-18 Thread Galos, David
> Maybe now? I would: * submit as a patch * write a manpage * add usage * eprintf something upon failure.

Re: [dev] sbase: logname

2013-06-18 Thread Calvin Morrison
On 18 June 2013 11:59, Alexander Huemer wrote: > Maybe now? I had just remembered the sbase project when I saw some other posts, and remembered also when I was learning C my futile attempt at core utils called core-futiles. The quality is poor Now I know better. Calvin

Re: [dev] sbase: logname

2013-06-18 Thread Alexander Huemer
Maybe now? /* See LICENSE file for copyright and license details. */ #include #include int main(void) { char *login; login = getlogin(); if (!login) return 1; puts(login); return 0; }

Re: [dev] sbase: logname

2013-06-18 Thread Alexander Huemer
Damn it, without the semicolon now. /* See LICENSE file for copyright and license details. */ #include #include int main(void) { char *login; login = getlogin(); if (!login) return 1; puts(login); return 0; };

Re: [dev] sbase: logname

2013-06-18 Thread Alexander Huemer
On Tue, Jun 18, 2013 at 11:31:13AM -0400, Calvin Morrison wrote: > is there an interest in having the logname tool? > > I have a basic implementation of it here: > > https://github.com/mutantturkey/corefutiles/blob/master/logname.c Some personal comments: * Weird indentation. What coding style i

[dev] sbase: logname

2013-06-18 Thread Calvin Morrison
is there an interest in having the logname tool? I have a basic implementation of it here: https://github.com/mutantturkey/corefutiles/blob/master/logname.c Do we care about dependencies? I only have and but I also use puts() and it doesn't have a usage. Essentially five minute of work once I