SNHELLO and sed: error?
Phil Richards <[email protected]>
| Newsgroups | gmane.network.sn |
|---|---|
| Message-ID | <[email protected]> |
I've just been reinstalling my gentoo Linux box, and reinstalled
sn-0.3.7. Quickly testing out snget, I got:
% snget demon.announce
sed: -e expression #1, char 4: Unterminated address regex
sed: -e expression #1, char 2: Unterminated `s' command
SNHELLO:news.demon.co.uk:Can't run sed
snfetch:demon.announce:No new articles
Looking at SNHELLO, I think I agree with sed... The
sed scrips are:
rmcr () { sed -e 's/
//' -e '/^\.$/d' >$tmp || end "Can't run sed"; }
and:
sed '1,/^
$/{
/^[sS][eE][nN][dD][eE][rR] *:/d
/^[nN][nN][tT][pP]-[pP][oO][sS][tT][iI][nN][gG]-[hH][oO][sS][tT] *:/d
/^[bB][yY][tT][eE][sS] *:/d
/^[lL][iI][nN][eE][sS] *:/d
}
/^\.
$/d' $art >&7
(I'm using GNU sed 4.0.9.)
Newlines inthe search pattern is certainly not portable - has my
download/un-tar been corrupted (or is tar playing games with me)?
pihl
--
Phil Richards, <[email protected]>
Derived Software Limited