dusan halicky wrote:
> This is the exact case why to do it, look at \"my\" version:
>
> $ cat filename | basename
Arg! Why why why do people do this nonsense? There is *NO* reason to
use cat here. "basename <filename" does precisely the same thing and
does not require spawning some /bin/cat program to do it.
And as already pointed out, you don't need to modify basename at all to
achieve this today, you can just do "xargs -l basename <filename".
Brian