🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1482

sed - "\\" in target becomes \000

#1482
From: Jim Meyering
Date: Fri, 03 Feb 1989 04:36
12 lines
590 bytes
On a sun4-os4,

% echo ab | /public/bin/sed 's/b/\\b/' | od -c
0000000    a  \0   b  \n
0000004
% echo ab | /bin/sed 's/b/\\b/' | od -c
0000000    a   \   b  \n
0000004
%
-- 
---
Jim Meyering      meyering@cs.utexas.edu
Technical Details
Message-ID: <157@ai.cs.utexas.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!meyering

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!meyering
From: meyering@cs.utexas.edu (Jim Meyering)
Newsgroups: gnu.utils.bug
Subject: sed - "\\" in target becomes \000
Message-ID: <157@ai.cs.utexas.edu>
Date: 3 Feb 89 04:36:47 GMT
Distribution: gnu
Organization: U. Texas CS Dept., Austin, Texas
Lines: 12