[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Square brackets in file names and authz (in VisualSVN 2.5.5)

From: Matthew Pounsett <matt_at_conundrum.com>
Date: Wed, 11 Jul 2012 11:01:36 -0400

On 2012/07/11, at 01:13, Jason Heeris wrote:

> The problem is this: it doesn't seem to work on files with the '[' or ']' characters in their name. Ignoring VisualSVN's GUI for now, I've tried going one step further and editing the "authz-windows" file by hand and I just can't seem to get it to work. I've tried variations like:

I note by your examples that you're using a unix filesystem (as opposed to Windows). I would be a little surprised if this worked there, since the square brackets are normally used by unix shells as glob metacharacters, similarly to * and ?.

For example, 'tmp[123].txt' is a glob pattern to match tmp1.txt, tmp2.txt and tmp3.txt.

Sorry, I'm not sure how to help you make this work. If you can avoid using those characters in file names, please do so at all costs. A good rule of thumb is that if you can't create the file from a command line in a shell without escaping characters, then don't use those characters.

> It's also worth pointing out that some paths have the "#" character in them. What do I do when I get to those?

This is commonly comment character. It's possible to create a file with this character in it, but personally I'd avoid it. It's possible you could escape it like so: "tmp\#1.txt", but I'm not confident that will work. If svn can't deal with this one you might have a case for it being a bug, since it is technically a legal file name.
Received on 2012-07-11 17:02:22 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.