From: Josef 'Jupp' Schugt Date: 2007-01-14T09:23:09+09:00 Subject: Re: Scriptable text editor with Ruby? --------------enigBC9C1947D91C34920FFD6450 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable * Gregory Brown, 01/03/2007 06:17 PM: > but vi *must* run everywhere (According to POSIX). :) line-mode ex is scriptable. The TUI that can be started using ':visual' (hence its commonly known name 'vi') isn't. ex's ancestor ed is scriptable as well. I sometimes use the latter for shell script controlled in-place editing of files to avoid unnecessary security issues resulting from the creation and deletion of temporary files (that is one of the largest source of harmful security holes known to authors of shell scripts). It is a pity that many people only know sed (wich is nothing but a stripped-down version of ed only being capable to handle streams) because they are doomed to introduce such problems. Jupp --=20 Happy 10. birthday, HAL. --------------enigBC9C1947D91C34920FFD6450 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFFqXflrhv7B2zGV08RAvpCAJwPGu+EhqMXdbeA5bYuLsy/4fwkVwCfa6v/ jk/5IHgKDTXKRbPqW2QN/WM= =syko -----END PGP SIGNATURE----- --------------enigBC9C1947D91C34920FFD6450--