Comment 1 for bug 173211

Revision history for this message
C de-Avillez (hggdh2) wrote :

Thank you for opening this bug and helping making Ubuntu better. Before I propose this upstream, I would like to know more about what you would like to have -- is it just a fixed prefix (pretty much like the suffix currently supported)?

For example (and supposing this new option is to be triggered by the '-p' or '--prefix' parameter):

basename --prefix atest /this/is/a/sample/atest-data.filename

would return '-data.filename', while

basename --prefix atest /this/is/a/sample/atest-data.filename .filename

would return '-data'.

Is this a correct interpretation?

Thanks.