Article View: gnu.utils.bug
Article #920sed-1.11 has problems with the character \377
From: Cliff Krumvieda
Date: Wed, 14 Oct 1992 15:20
Date: Wed, 14 Oct 1992 15:20
32 lines
1589 bytes
1589 bytes
Howdy: GNU sed-1.11 isn't behaving like Sun sed (which, admittedly, may or may not be wrong). We're running sed on sparcstations under SunOS 4.1.1. Consider the following two scripts, called "sedtest" and "sedtestgnu": ====================================================================== #! /bin/csh -f /bin/sed -e "s/\377/newtext/g" ====================================================================== #! /bin/csh -f /usr/local/gnu/bin/sed -e "s/\377/newtext/g" ====================================================================== The "\377" above isn't the four characters "\377"; it's what emacs types when you enter "C-q 377". Also, we keep sed-1.11 in /usr/local/gnu/bin/sed. Now: ====================================================================== [~] leo% echo abc | sedtest abc [~] leo% echo abc | sedtestgnu /usr/local/gnu/bin/sed: Unexpected End-of-file [~] leo% ====================================================================== It looks like sed-1.11 thinks that \377 is an EOF marker, which is both wrong and inconvenient. Is this a fixable bug? --Cliff Krumvieda
Technical Details
Message-ID:
<9210142320.AA13722@ask.cs.cornell.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cs.cornell.edu!cliffShow Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cs.cornell.edu!cliff From: cliff@cs.cornell.edu (Cliff Krumvieda) Subject: sed-1.11 has problems with the character \377 Message-ID: <9210142320.AA13722@ask.cs.cornell.edu> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Wed, 14 Oct 1992 15:20:43 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 33