On Mon, Mar 28, 2011 at 10:36 PM, Stephan Beal <[email protected]>wrote:
> The simplest workaround is to quote the filename: > > fossil add 'somefile.r&s' > That said, "special" characters in filenames (spaces, quotation marks, and the like) often cause more grief than simply renaming the files. Lots of shell scripts are not careful to quote filenames properly and may choke in unexpected ways when encountering files with special characters. e.g. if we have a filename "1a b c" (with spaces but no quotes), the following will not work: for i in a*; do mv $i $i.bak; done that will try to move 5 files (if i'm not mis-counting) to a single file names c.bak. stephan@tiny:~$ touch '1a b c' stephan@tiny:~$ for i in 1a*; do echo mv $i $i.bak; done mv 1a b c 1a b c.bak As a general rule, to avoid compatibility problems, never use spaces or any characters which might be prohibited or problematic on some systems. e.g. having the character ':' in a filename will work on Unix but not Windows. -- ----- stephan beal http://wanderinghorse.net/home/stephan/
_______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

