From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from techfac.techfak.uni-bielefeld.de ([129.70.132.100]) by archone.tamu.edu with SMTP id <45324>; Sat, 18 Apr 1992 10:05:59 -0500 Received: from dahlie.TechFak.Uni-Bielefeld.DE by techfac.techfak.uni-bielefeld.de (5.65+bind 1.7+ida 1.4.2/tp.29.0890) id AA10282; Sat, 18 Apr 92 17:05:50 +0200 Received: by dahlie.techfak.uni-bielefeld.de (4.1/tp.29.0890) id AA03196; Sat, 18 Apr 92 17:05:24 +0200 Date: Sat, 18 Apr 1992 10:05:24 -0500 From: malte@techfak.uni-bielefeld.de Message-Id: <9204181505.AA03196@dahlie.techfak.uni-bielefeld.de> To: rc@archone.tamu.edu Subject: Re: trailing newlines I'm not sure if I get the point, but isn't this what you want: x = `` ($nl) { echo $x } # strips all newlines or fn deletenl { * = `` ($nl) { echo $* } while ( ! ~ $#* 0 1 ){ # echo all args but the last echo $^1 shift } echo -n `` ($nl) { echo $^1 } # echo last arg without nl } x = `` () { deletenl $x } To be honest, deletenl squeezes repeated nls into one. Malte.