coreutils
[Top][All Lists]
Advanced

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

Re: [coreutils] basename/dirname can't handle stdin?


From: Jim Meyering
Subject: Re: [coreutils] basename/dirname can't handle stdin?
Date: Wed, 12 Jan 2011 20:31:37 +0100

> On 1/12/2011 2:02 PM, Eric Blake wrote:
...
>> But someone has to contribute the patch - are you willing?

Jeff Blaine wrote:
> Sure, I can try at least!

Great!
Here are some coding guidelines:

    http://git.sv.gnu.org/cgit/coreutils.git/tree/HACKING

To start with, please look through the copyright assignment
section and start the process (assuming you're game), since
it can take a few weeks:

    http://git.sv.gnu.org/cgit/coreutils.git/tree/HACKING#n429


The arg-handling (and --files0-from=FILE handling) loop you'll use
should be very similar to the ones in wc.c, du.c and sort.c.
You'll probably want to use tests that are very similar to
the ones that test the behavior in those tools.

Note this bit at the top of tests/misc/wc-files0-from:

    #!/usr/bin/perl
    # Exercise wc's --files0-from option.
    # FIXME: keep this file in sync with tests/du/files0-from.



reply via email to

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