[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Replacement strings for .files?
From: |
Ole Tange |
Subject: |
Replacement strings for .files? |
Date: |
Sat, 27 Aug 2016 22:51:20 +0200 |
--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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Replacement strings for .files?,
Ole Tange <=