Re: path = not supporting *

Tõivo Leedjärv <[email protected]> Wed, 24 Jul 2024 18:15:59 +0200
Newsgroups gmane.network.unison.general
Message-ID <CAALvpZQTtyyt7wFbn55438mFKBiQkqDXsfxwL5vz1n1t_3NNXw@mail.gmail.com>
On Mon, 22 Jul 2024 at 12:13, Mo B <[email protected]> wrote:

> On Friday, July 19, 2024 at 12:11:18 PM UTC+2 Tõivo Leedjärv wrote:
>
> Interestingly, there _is_ code to expand path values in form of
> "dir/*" but not in form of "dir*". I don't know why that is and
> whether making the latter form work would cause any issues.
>
>
> Trying that, and you are right. But literally it doesn't make any
> difference adding
>
>  path = subtree
>
> OR
>
> path = subtree/*
>
> does it?
> First one leads to
>
> A              B
> new dir  ---->            subtree  [f]
>
> while the second one iterates over
>
> A              B
> new dir  ---->            subtree/subdir_CC  [f] f
> new dir  ---->            subtree/subdir_CD  [f] f
>
> Or does it make a difference when going down that tree? I tried and it
> does not make a difference. Both would also walk down to deeper subdirs.
> So the implementation of having globs patterns like subtree/* does not
> have any benefit.
>

No, I don't think it makes any difference. The code is very old (20+), so
it is unclear if it is unfinished or perhaps a remnant of something else
long since removed.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].