[Top][All Lists]

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

Re: FW: FW: How to tell Pre commit script the exact File Name containing

From: Russ Sherk
Subject: Re: FW: FW: How to tell Pre commit script the exact File Name containing Spaces?
Date: Sat, 2 Apr 2005 23:54:12 -0500

UseNewInfoFmtStrings=yes will not fix the problem I don't think.  The
problem is with how (ba)sh handles expansion of a list of arguments
not how the arguments are passed to it.  "$@" is very different from
address@hidden b "c d"  (or a b c\ d)
sh expands $@ to: a, b, c, d
but expands "$@" to: a, b, c\ d

Even with the suggested fix, (ba)sh will still expand the arguments
incorrectly (for the intended script behaviour) if $@ is unquoted.


Changing the 
On Apr 2, 2005 11:36 AM, Mark D. Baushke <address@hidden> wrote:
> Hash: SHA1
> Paras jain <address@hidden> writes:
> > Thanks Russ, (Sorry Russ please ignore previous mail)
> >
> > >>You can test this by creating a script with the above as contents.
> > >>Run it with args: a b "b a".  Then remove the quotes from the $@ ant
> > >>try it again with the same args to see what (ba)sh does to the args.
> >
> > But my script is getting from CVS server is a b c not a "b c"
> > That is why for I in  "$@" not helped me....
> >
> > Let two files named as a and "b c" then CVS server send to my script
> > is a b c not a "b c" ...
> > I think I need to modify slightly in CVS code so that Pre-commit
> > script will get files surrounded by double quotes but I am not known
> > to CVS code ?? If anybody has the same problem or can guide me where
> > to start...
> Pick up a copy of cvs 1.12.x and look at putting
> UseNewInfoFmtStrings=yes in your CVSROOT/config file along with changes
> to the various CVSROOT trigger files.
> Read
> for more details.
> (I believe this feature was introduced in cvs 1.12.6.)
>         -- Mark
> Version: GnuPG v1.2.3 (FreeBSD)
> GmTeV2lIf/CqkqzcIyPPZK0=
> =YdDf
> _______________________________________________
> Info-cvs mailing list
> address@hidden

reply via email to

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