>> H:\bzr>echo *.txt > .bzrignore
>
> ^-- The problem is here.
> win32 echo command wrote to .bzrignore exact string that ends at '>'
> sign, i.e. actually "*.txt ". So bzr try to match against file extension
> "txt ". Because on windows you cannot create files with trailing spaces
> this behavior is incorrect on windows. But pattern itself is probably
> correct for linux.
>
> But if you actually invoke your command as:
>
> echo *.txt> .bzrignore
>
> then all works fine.
>
> I'm not sure how to fix this in cross-platform way.
Sounds like trailing spaces in .bzrignore file should be trimmed. I
can't think of a good reason for not doing that.
Alexander Belchenko wrote:
>> H:\bzr>echo *.txt > .bzrignore
>
> ^-- The problem is here.
> win32 echo command wrote to .bzrignore exact string that ends at '>'
> sign, i.e. actually "*.txt ". So bzr try to match against file extension
> "txt ". Because on windows you cannot create files with trailing spaces
> this behavior is incorrect on windows. But pattern itself is probably
> correct for linux.
>
> But if you actually invoke your command as:
>
> echo *.txt> .bzrignore
>
> then all works fine.
>
> I'm not sure how to fix this in cross-platform way.
Sounds like trailing spaces in .bzrignore file should be trimmed. I
can't think of a good reason for not doing that.
Ian C.