[Top][All Lists]

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

basename BSD compatibility and filter mode

From: Jérémy Compostella
Subject: basename BSD compatibility and filter mode
Date: Sat, 03 Mar 2012 15:10:45 +0100


I'm interesting in implementing these features:

1. basename BSD options and behavior compatibility:

Add the following options:
-s, --suffix: specify the suffix
-a, --multiple: every argument is treated as a string as if basename
were invoked with just one argument.

- with more than two arguments basename acts as if -a was specified.
- if -s is specified, act as if -a was specified too.

Arguments for this feature is convenience and BSD compatibility. Let me
know if this is sufficient to provide it in GNU/coreutils.

2. basesame acts as a filter:

post convince me that maybe this feature is not relevant because there
are actually other very simple ways to achieve this.

What do you think?



reply via email to

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