--plus defines these replacement strings:
{} = {+/}/{/} = {.}.{+.} = {+/}/{/.}.{+.} = {..}.{+..} =
{+/}/{/..}.{+..} = {...}.{+...} = {+/}/{/...}.{+...}
If given the input 'sub/dir/foo.bar.baz.qx' they all give the same.
But what would you expect each of the replacement strings to return
given this as input:
foo.bar.baz.qx
sub/dir/foo.bar.baz
foo.bar.baz
sub/dir/foo.bar
foo.bar
sub/dir/foo
foo
.foo.bar.baz.qx
sub/dir/.foo.bar.baz
.foo.bar.baz
sub/dir/.foo.bar
.foo.bar
sub/dir/.foo
.foo
E.g. {+/}/{/} clearly cannot give 'foo' if given 'foo' as input as
there is a / between the replacement strings. Should {+/} then maybe
give '.' so the result was './foo' ? Or is the empty string what you
would expect, resulting in: '/foo' ?
I am not sure what the least surprising would be.
Please come with your suggestion and discuss with others if they
disagree, so we can get a better default.
/Ole