home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!vaxc.cc.monash.edu.au!apm233m
- From: apm233m@vaxc.cc.monash.edu.au
- Newsgroups: comp.os.linux
- Subject: Is there an ed which works for Linux?
- Message-ID: <1992Aug21.162523.89845@vaxc.cc.monash.edu.au>
- Date: 21 Aug 92 16:25:23 +1000
- Organization: Computer Centre, Monash University, Australia
- Lines: 27
-
- Is there a working ed for linux?
- I tried compiling the ed.c from the linux servers but it doesn't
- seem to work properly. In fact the source code makes gcc choke; I
- had to change a few expressions like
- a &= ^(1 << x);
- to
- a &= ~(1 << x);
- Having fixed this, the resulting executable fails on the following:
- for the text:
- #define bloggs 12345
- the command:
- s/[0-9][0-9]*/5555/p (or something similar, I don't
- speak ed)
- produces:
- #d5555fine bloggs 12345 (or something similar)
-
- Actually, I would be quite happy to never use ed, but web2c uses it
- while making the tex system.
-
- A thought: Is there a way to make emacs emulate ed in this type of
- application ?
- --
- ---------------
- Bill Metzenthen
- Mathematics Department
- Monash University
- Australia
-