Re: How to Ignore Any File Name Ending with the Pound Sign #

Tõivo Leedjärv <[email protected]> Fri, 19 Jul 2024 21:07:13 +0200
Newsgroups gmane.network.unison.general
Message-ID <CAALvpZQtUkoLOsMfZU6ru3OcSmxHEJZ6eZh0k7n7CXG42GQJEg@mail.gmail.com>
Hi Henry,

ignore = Name *# will work just fine. If it didn't work for you then the
pattern you specified and the actual paths don't match for some other
reason. Unison does not treat "#" in any special way.
ignore = Name {*#} will work too but it's not some special Unison syntax,
it's just normal shell globbing (special case of {a,b,c}, like Sebastian
mentioned).


On Fri, 19 Jul 2024 at 20:04, Henry Shu <[email protected]> wrote:

> Hello,
>
> What can I write in a Unison profile to ignore any file paths ending with
> a pound sign #?  I've tried the following, and none worked.
>
> I think the tricky part is that Unison treats "#" as a special character
> for commenting in a profile.
>
> ignore = Name *#
> ignore = Name *\#
> ignore = Name *[#]
> ignore = Name *\\#
> ignore = Name "*#"
> ignore = Name *"#"
>
> Thanks,
> Henry
>
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
>

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