Subject: Re: bin/24676: vi -c flag does not work correctly
To: Aymeric Vincent <vincent@labri.fr>
From: Peter Bex <Peter.Bex@student.kun.nl>
List: netbsd-bugs
Date: 03/05/2004 22:58:33
--DKU6Jbt7q3WqK7+M
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Mar 05, 2004 at 06:07:00PM +0100, Aymeric Vincent wrote:
>=20
> 	Hi,
>=20
> Quoting from nvi sources, this looks like the desired behaviour:
>=20
>          /*
>           * Historically, initial commands (the -c option) weren't=20
> executed
>           * until a file was loaded, e.g. "vi +10 nofile", followed by an
>           * :edit or :tag command, would execute the +10 on the file=20
> loaded
>           * by the subsequent command, (assuming that it existed).  This
>           * applied as well to files loaded using the tag commands, and=
=20
> we
>           * follow that historic practice.  Also, all initial commands=20
> were
>           * ex commands and were always executed on the last line of the=
=20
> file.
>=20
> (see src/usr.bin/vi/common/exf.c)

Hmm, strange.  Probably this just needs to be mentioned in the manpage to
avoid this type of confusion, then.

Regards,
Peter
--=20
http://www.student.kun.nl/peter.bex
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
							-- Donald Knuth

--DKU6Jbt7q3WqK7+M
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQFASPgJLg33BXzVMqsRAj4dAJ0b9tW+Rj850V4C0rVyhVAwAOVpmgCeJi13
xYNkopA0J7m2ECp+e2OSsSU=
=yEuC
-----END PGP SIGNATURE-----

--DKU6Jbt7q3WqK7+M--