Date: Wed, 08 Aug 2001 10:12:23 +1000 From: Tony Landells <ahl@austclear.com.au> To: "Drew Tomlinson" <drewt@writeme.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to Echo Newline in tcsh? Message-ID: <200108080012.KAA06302@tungsten.austclear.com.au> In-Reply-To: Message from "Tyler" <blouz@shack.mine.nu> of "Tue, 07 Aug 2001 19:56:39 -0400." <001b01c11f9c$9a48b520$0400a8c0@xeranet.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <ahl@austclear.com.au> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108080012.KAA06302>