From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13445 invoked from network); 18 Aug 1997 15:35:59 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 18 Aug 1997 15:35:59 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.8.5/8.8.5) id LAA04770; Mon, 18 Aug 1997 11:30:10 -0400 (EDT) Resent-Date: Mon, 18 Aug 1997 11:30:10 -0400 (EDT) Message-Id: <199708181530.RAA17269@hydra.ifh.de> To: zsh-workers@math.gatech.edu (Zsh hackers list) Subject: makepro.sed workaround Date: Mon, 18 Aug 1997 17:30:30 +0200 From: Peter Stephenson Resent-Message-ID: <"P1zJD1.0.TA1.2g6-p"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3446 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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 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.