info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: loginfo and filenames with spaces


From: Larry Jones
Subject: Re: loginfo and filenames with spaces
Date: Thu, 24 Apr 2003 14:28:18 -0400 (EDT)

BackLoop writes:
>
> But there is problem with folders and filenames containing spaces - the
> loginfo substitute parameter %s returns the folder and filelist separated by
> space. Also I tried to capture stdout but there is the same- filelist
> separated by space.
> Any ideas how to resolve this? Maybe there is some patch for CVS which
> adresses the problem?

The best solution is to not use spaces in file and directory names. 
Failing that, a workaround is to use an upsupported character (space is
traditional) in the format string to give you an empty field that you
can key off of.  For example, using %{ s } instead of %s would result in
something like:

        "my directory ,my first file, ,my second file,"

Of course, if you also have commas in your file/directory names, that
makes life a bit more interesting.

-Larry Jones

Santa's gonna skip this block for years. -- Calvin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]