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

2011-01-13 Thread Jeff Blaine
On 1/13/2011 2:53 AM, Jim Meyering wrote: Jeff Blaine wrote: Eric, now that I've got the prereqs in place, built coreutils from git successfully, and read the coreutils HACKING file, let's make sure I am on your page: In no order: * Snarf getopt_long arg processing from wc.c or other you

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

2011-01-13 Thread Jeff Blaine
So then, please review. One question at the bottom. # Most basic usage basename /foo/bar.txt = bar.txt # Old/current basename NAME SUFFIX compat- # ibility basename /foo/bar.txt .txt = bar # ERROR, one too many operands basename

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

2011-01-13 Thread Jeff Blaine
On 1/12/2011 3:09 PM, Bob Proulx wrote: This also fails: find /somewhere -print | xargs basename Why did that fail? Are you also getting an error message from find? [jblaine@new-host src]$ find /home/jblaine -mtime -1 -print /home/jblaine /home/jblaine/.gconf /home/jblaine/.gconf/apps

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

2011-01-12 Thread Jeff Blaine
I was surprised to find this today. The following fails: echo /some/place/foo.txt | basename This also fails: find /somewhere -print | xargs basename This *does* work though, somehow, when the above does not: echo /some/place/foo.txt | xargs basename What is going on here?