Subject: Why won't vi's -c flag work?
To: None <netbsd-help@netbsd.org>
From: Peter Bex <Peter.Bex@student.kun.nl>
List: netbsd-help
Date: 03/04/2004 16:21:36
--IMjqdzrDRly81ofr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello all,

I've mailed this to netbsd-users before, but no response, so I thought
maybe netbsd-help would be more appropriate.
This flag is something I would really like to get to work! Here's the
original message:

Can anyone tell me why the command
$ vi -c "set wl=3D72"
will not work as expected?  (`:set wl' shows `wraplen=3D0' and I expected i=
t to
say `wraplen=3D72', as the manpage seems to say it should.)

If I also supply an existing(!) file on the command line, the file opens,
with wraplen set to 72 (correct behaviour) and the cursor on the last line
of the file (incorrect behaviour, if you ask me).

I observed this behaviour on 1.6.1 and on -current, using nvi.

Am I missing something here or is this a real bug?

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

----- End forwarded message -----

--=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

--IMjqdzrDRly81ofr
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFAR0mALg33BXzVMqsRAnnFAJ453XMLeyK1s7K+GKDrjZpDGDEjawCglLs2
Wok75M+b5NX+9AufN6QfYEg=
=WrgR
-----END PGP SIGNATURE-----

--IMjqdzrDRly81ofr--