Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!ccicpg!felix!zemon From: david@geac.UUCP (David Haynes) Newsgroups: comp.unix.ultrix Subject: Sed broken in Ultrix 2.0 SDC release Message-ID: <11616@felix.UUCP> Date: Tue, 3-Nov-87 12:06:05 EST Article-I.D.: felix.11616 Posted: Tue Nov 3 12:06:05 1987 Date-Received: Sat, 7-Nov-87 09:10:40 EST Sender: zemon@felix.UUCP Reply-To: david@geac.UUCP (David Haynes) Organization: GEAC Computers, Toronto, CANADA Lines: 19 Approved: zemon@felix.UUCP Reply-Path: I was quite amazed as I made the transition from Ultrix 2.0 beta to 2.0 SDC release that a bug had been added to sed. Check out the following mini script: #/bin/sh echo "ab" | sed 's/\(.\)\(.\)/\2,\1/' I was expecting "b,a" instead I got "2,1" -- this is a serious break. The manual page (1-142 Commands (ed)) says that my interpretation of the script should work. -david- -- David Haynes Geac Computers International Inc. UUCP: {mnetor|yetti|utgpu}!geac!david