Date: Wed, 11 Dec 2002 11:50:34 +0200 From: Peter Pentchev <roam@ringlet.net> To: Stijn Hoop <stijn@win.tue.nl> Cc: Lamont Granquist <lamont@scriptkiddie.org>, Dmitry Morozovsky <marck@rinet.ru>, freebsd-hackers@freebsd.org Subject: Re: CVS_LOCAL_BRANCH_NUM? Message-ID: <20021211095034.GC3860@straylight.oblivion.bg> In-Reply-To: <20021211094004.GC52865@pcwin002.win.tue.nl> References: <20021210201135.H10798-100000@woozle.rinet.ru> <20021210115422.T3061-100000@coredump.scriptkiddie.org> <20021211085954.GB371@straylight.oblivion.bg> <20021211094004.GC52865@pcwin002.win.tue.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
--1sNVjLsmu1MXqwQ/ Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 11, 2002 at 10:40:04AM +0100, Stijn Hoop wrote: > On Wed, Dec 11, 2002 at 10:59:55AM +0200, Peter Pentchev wrote: > > On Tue, Dec 10, 2002 at 11:56:26AM -0800, Lamont Granquist wrote: > > > On Tue, 10 Dec 2002, Dmitry Morozovsky wrote: > > > > Please note quotes explicitly, "$@" is really needed where your par= ameters > > > > contain spaces (bad practice in filenames, yeah, but don't make you= rself > > > > another one PITA you can avoid ;-P ) > > >=20 > > > got it. > >=20 > > Mmm.. I am not really sure if we need quotes in this particular case. > > In my experience, the CVS invocation in the server or pserver case > > almost always has more than one argument (at the very least, the > > 'server' or 'pserver' keyword and one 'allow-root' option). The quotes > > around "$@" would make the whole param string be passed as a single > > parameter to the "real" CVS binary, which might not be quite the desired > > result... >=20 > No, that's not the behaviour with /bin/sh, from the man page: >=20 > @ Expands to the positional parameters, starting from one. Wh= en > the expansion occurs within double-quotes, each positional p= aram- > eter expands as a separate argument. If there are no positi= onal > parameters, the expansion of @ generates zero arguments, even > when @ is double-quoted. What this basically means, for exa= mple, > is if $1 is ``abc'' and $2 is ``def ghi'', then "$@" expands= to > the two arguments: >=20 > "abc" "def ghi" >=20 > I think "$@" (with the quotes) is ok. Oops. Thanks for the clarification. Never had to deal with $@ before, actually. /me crawls back into his hole. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 No language can express every thought unambiguously, least of all this one. --1sNVjLsmu1MXqwQ/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE99wpq7Ri2jRYZRVMRAqNAAJ9Wk9ivJCSMgNUdK2xXKZ8PCA5JrgCgnmbF uxY8p+6JJX0izxEninAZUYI= =gHM4 -----END PGP SIGNATURE----- --1sNVjLsmu1MXqwQ/-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021211095034.GC3860>