bug-coreutils
[Top][All Lists]
Advanced

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

Re: basename sucks


From: Brian Dessent
Subject: Re: basename sucks
Date: Thu, 01 Feb 2007 20:02:41 -0800

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




reply via email to

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