On 01/13/2011 04:35 PM, Jeff Blaine wrote:
> Eric wrote:
>> basename -a -s suffix str1 str2: same (-a is only required for exactly
>> two arguements, and is implied for 0 or for more than 2 args)
> 
> basename -a -s .txt foo.txt bar.txt baz.txt
> 
> So you're saying -a is redundant there?  Sorry, I'm not
> familiar with BSD's basename at all.  Just looking to
> implement what you want.

Yes, the -a is redundant the moment you have -s.  (It helps that I have
a login to a FreeBSD machine, and have been testing these cases as I
type these mails).  It is only required when you have exactly 2
arguments but don't want the second to be treated as a suffix.

-- 
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to