*BSD News Article 12525


Return to BSD News archive

Path: sserve!manuel.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!spool.mu.edu!uunet!pipex!sunic!isgate!krafla!adamd
From: adamd@rhi.hi.is (Adam David)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Has anyone ported C-News to 386bsd?
Message-ID: <6546@krafla.rhi.hi.is>
Date: 8 Mar 93 12:18:32 GMT
References: <1ndtjkINN49t@ftp.UU.NET>
Sender: usenet@rhi.hi.is
Lines: 24
Nntp-Posting-Host: hengill.rhi.hi.is

sef@Kithrup.COM (Sean Eric Fagan) writes:

>The subject says it all, pretty much.  I am running into problems with
>sed and expr; I fixed the expr one, but don't know sed well enough to
>deal with it.

The subst script was broken. In the "performance" release from February this
year, the following changes are necessary:

around line 19 (after fixing):

them="`sed '/^#/d; s/^\([^	 ]*\)		 *\([^	 ]*\)$/s#@<\1>@#\2#g/' $substs`"

around lines 27-28 (after fixing):

file="`expr $f : '.*/\([^/]*\)'`"
dir="`expr $f : '\(.*\)/[^/]*'`"

Basically it was just removal of all occurences of '\"' and replacement of all
occurences of '\\' with '\' throughout the subst script. I don't think it is
a bug with the shell, it seems the script was genuinely broken.

--
Adam David (adam@veda.is)