zsh-workers
 help / color / mirror / code / Atom feed
* makepro.sed workaround
@ 1997-08-18 15:30 Peter Stephenson
  0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 1997-08-18 15:30 UTC (permalink / raw)
  To: Zsh hackers list

It looks like makepro.sed is scheduled for demolition in 3.1, but it
would be nice to have a 3.0.x that works out of the box even on HP-UX
10.20.

The workaround is simply to remove the end-of-line anchor in the
substitution.  Since .* is greedy, this should be harmless with all
working versions of sed too.

*** Src/makepro.sed.orig	Mon Jun 23 07:12:46 1997
--- Src/makepro.sed	Mon Aug 18 17:25:11 1997
***************
*** 2,7 ****
  /^\/\*\*\/$/{
  n
  N
! s/\n\([_a-zA-Z][_0-9a-zA-Z]* *\)\((.*\)$/ \1 _(\2);/
  p
  }
--- 2,7 ----
  /^\/\*\*\/$/{
  n
  N
! s/\n\([_a-zA-Z][_0-9a-zA-Z]* *\)\((.*\)/ \1 _(\2);/
  p
  }

-- 
Peter Stephenson <pws@ifh.de>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, Platanenallee 6, 15738 Zeuthen, Germany.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-08-18 15:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-18 15:30 makepro.sed workaround Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).