From owner-freebsd-questions Tue Aug 7 17:12:28 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.austclear.com.au (ns1.austclear.com.au [192.43.185.68]) by hub.freebsd.org (Postfix) with ESMTP id 3D0A137B401 for ; Tue, 7 Aug 2001 17:12:25 -0700 (PDT) (envelope-from ahl@austclear.com.au) Received: from tungsten.austclear.com.au (tungsten.austclear.com.au [192.168.166.65]) by ns1.austclear.com.au (8.11.2/8.11.3) with ESMTP id f780CNv10229; Wed, 8 Aug 2001 10:12:23 +1000 (EST) (envelope-from ahl@austclear.com.au) Received: from tungsten (tungsten [192.168.166.65]) by tungsten.austclear.com.au (8.9.3/8.9.3) with ESMTP id KAA06302; Wed, 8 Aug 2001 10:12:23 +1000 (EST) Message-Id: <200108080012.KAA06302@tungsten.austclear.com.au> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Drew Tomlinson" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to Echo Newline in tcsh? In-Reply-To: Message from "Tyler" of "Tue, 07 Aug 2001 19:56:39 -0400." <001b01c11f9c$9a48b520$0400a8c0@xeranet.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 08 Aug 2001 10:12:23 +1000 From: Tony Landells Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG How tcsh interprets echo strings is determined by the "echo_style" variable. According to the manual, the default is "both" which will permit "\n" to be a newline, but my default installation of FreeBSD 4.2 has it set to "bsd" for root's shell, in which case "\n" means nothing. If you set it to either "sysv" or "both" you'll get what you want: freddo# echo $echo_style bsd freddo# echo "test\n" test\n freddo# set echo_style=both freddo# echo "test\n" test freddo# Tony -- Tony Landells Senior Network Engineer Ph: +61 3 9677 9319 Australian Clearing Services Pty Ltd Fax: +61 3 9677 9355 Level 4, Rialto North Tower 525 Collins Street Melbourne VIC 3000 Australia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message