From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from techfac.TechFak.Uni-Bielefeld.DE ([129.70.132.100]) by hawkwind.utcs.toronto.edu with SMTP id <2645>; Mon, 7 Jun 1993 04:43:52 -0400 Received: from idefix.TechFak.Uni-Bielefeld.DE by techfac.TechFak.Uni-Bielefeld.DE id AA08117; Mon, 7 Jun 1993 10:42:10 +0200 Received: by idefix.techfak.uni-bielefeld.de (5.0/tp.29.0890) id AA09937; Mon, 7 Jun 93 10:42:08 +0200 Date: Mon, 7 Jun 1993 04:42:08 -0400 From: malte@TechFak.Uni-Bielefeld.DE Message-Id: <9306070842.AA09937@idefix.techfak.uni-bielefeld.de> To: rc@hawkwind.utcs.toronto.edu Subject: Re: here strings In-Reply-To: Mail from 'John (Most modern computers would break if you stood on them) Mackin ' dated: Sat, 5 Jun 1993 08:55:54 -0400 So let me say I'm very sorry I didn't get the hint from your mail header: "John (Most modern computers would break if you stood on them) Mackin". But to all the non expert text tool users out there: The point is not all tools deal correctly with non-newline terminated here strings. I spent quite some time discovering this when I wrote a shell script that ran fine with path = ( /vol/gnu/bin ... ) but didn't with path = ( /bin ... ) on a Sparc running SunOS 4 and another running SunOS 5. ; /vol/gnu/bin/sed 's/a/e/g' <<< aaaaaa eeeeee ; /bin/sed 's/a/e/g' <<< aaaaaa ; Because of this, I refuse to use here strings since their semantic is confusing me and - if not avoidable - is replacable by "echo -n", unless someone can show me a counter example. I do not want to throw here strings out because that'll probably break a lot of existing scripts. I'd just wanted to state their superfluousness. Malte