bug-coreutils
[Top][All Lists]
Advanced

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

Re: basename sucks


From: Eric Blake
Subject: Re: basename sucks
Date: Thu, 01 Feb 2007 06:24:34 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Alfred M. Szmidt on 2/1/2007 6:21 AM:
> You won't be able to specify the suffix to remove if it is going to
> behave like a filter, unless you add a option for that.
> 
> $ echo foo.h | basename --suffix=.h
> foo

Furthermore, with a --suffix option, we could also allow multiple command
line arguments, another usage case that might prove useful:

$ basename --suffix=.h foo.h bar.h
foo
bar
$

All great ideas, but who is willing to code them?

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFFweoS84KuGfSFAYARAk1wAJjr3bB+K4dlwKY5tgsSKqK7WzxMAKDBUc5b
pwbII66OJ3MKPfUC8goZ/w==
=mo4S
-----END PGP SIGNATURE-----




reply via email to

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