home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8770 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  1.2 KB

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