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 [EMAIL PROTECTED] [EMAIL PROTECTED] 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. --Russ. Changing the On Apr 2, 2005 11:36 AM, Mark D. Baushke <[EMAIL PROTECTED]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Paras jain <[EMAIL PROTECTED]> 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 > https://www.cvshome.org/docs/manual/cvs-1.12.11/cvs_18.html#IDX319 > for more details. > > (I believe this feature was introduced in cvs 1.12.6.) > > -- Mark > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3 (FreeBSD) > > iD8DBQFCTsoU3x41pRYZE/gRAqPaAKC+LZEc1TL6vM4iTM4xWVkTTK7i4QCgzCO0 > GmTeV2lIf/CqkqzcIyPPZK0= > =YdDf > -----END PGP SIGNATURE----- > > > _______________________________________________ > Info-cvs mailing list > Info-cvs@gnu.org > http://lists.gnu.org/mailman/listinfo/info-cvs > _______________________________________________ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs