Subject: Re: bin/16834
To: <>
From: Ignatios Souvatzis <is@netbsd.org>
List: tech-userlevel
Date: 12/07/2002 08:49:20
--k1lZvvs/B4yU6o8G
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Fri, Dec 06, 2002 at 11:20:26PM +0100, Klaus Klein wrote:
> Ignatios Souvatzis <is@netbsd.org> writes:
>=20
> > Wouldn't a script expecting a standard-conforming cp expect that
> > ``cp -v foo'' copies the file ``-v'' to the file ``foo'' ?
>=20
> No. A script expecting a 'restrictively' conforming cp would be
> broken, since a conforming cp utility may well support additional
> options. Furthermore, a conforming cp utility shall conform to the
> Utility Syntax Guidelines, which imply use of getopt() option parsing
> (or getopt()-like behaviour), and therefore invoking the utility with
> an unrecognized option character will usually result in an error.
>=20
> What you'd be looking for, in this particular case, is ``cp -- -v
> foo''.
=20
or:
cp ./-v foo
Regards,
-is
--k1lZvvs/B4yU6o8G
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (NetBSD)
iD8DBQE98af/PCRcZ/VMtk4RAlL9AJoC542H1Pt7x5cib4r8RdnpSIroAACfaAWt
fFEJb6B83WYBOoa/NhdxABk=
=5W4e
-----END PGP SIGNATURE-----
--k1lZvvs/B4yU6o8G--