Newsgroups: comp.unix.ultrix Path: utzoo!utgpu!watserv1!watcgl!idallen From: "Ian! D. Allen [CGL]" Subject: Ultrix 4.1 sed core dumps on long lines Message-ID: <1991Mar4.155221.13127@watcgl.waterloo.edu> Sender: idallen@watcgl.waterloo.edu (Ian! D. Allen [CGL]) Organization: Computer Graphics Laboratory, University of Waterloo, Ontario, Canada Date: Mon, 4 Mar 1991 15:52:21 GMT Lines: 26 ULTRIX V4.1 (Rev. 52) on a DS5400 % echo /u/* /u/* /u/* /u/* >! /tmp/i % wc /tmp/i 1 1164 13824 /tmp/i % sed -e 's/u/&/' /tmp/i > ! /tmp/ii Output line too long. 10313 Segmentation fault sed -e s/u/&/ /tmp/i > /tmp/ii (core dumped) % ls -l /tmp/i /tmp/ii -rw-r--r-- 1 root 13824 Mar 4 10:44 /tmp/i -rw-r--r-- 1 root 0 Mar 4 10:44 /tmp/ii - the man page mentions no line length limit - the output error message doesn't have the name of the program (sed) in it - the error message doesn't say what the limit is, e.g. sed: output line longer than 10240 bytes Sed also won't preserve binary files (try running /vmunix through a substitution that does nothing -- you don't get out what you put in), though we've come to expect that with most Unix utilities, haven't we? #include -- -IAN! (Ian! D. Allen) idallen@watcgl.uwaterloo.ca idallen@watcgl.waterloo.edu [129.97.128.64] Computer Graphics Lab/University of Waterloo/Ontario/Canada