From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 17:46:20 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EA201065674 for ; Mon, 14 May 2012 17:46:20 +0000 (UTC) (envelope-from freebsd@damnhippie.dyndns.org) Received: from qmta01.emeryville.ca.mail.comcast.net (qmta01.emeryville.ca.mail.comcast.net [76.96.30.16]) by mx1.freebsd.org (Postfix) with ESMTP id 218BE8FC0C for ; Mon, 14 May 2012 17:46:20 +0000 (UTC) Received: from omta23.emeryville.ca.mail.comcast.net ([76.96.30.90]) by qmta01.emeryville.ca.mail.comcast.net with comcast id 9tV31j00E1wfjNsA1tlEzH; Mon, 14 May 2012 17:45:14 +0000 Received: from damnhippie.dyndns.org ([24.8.232.202]) by omta23.emeryville.ca.mail.comcast.net with comcast id 9tlD1j00h4NgCEG8jtlDp4; Mon, 14 May 2012 17:45:14 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id q4EHjB1S094414; Mon, 14 May 2012 11:45:11 -0600 (MDT) (envelope-from freebsd@damnhippie.dyndns.org) From: Ian Lepore To: Robert Simmons In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" Date: Mon, 14 May 2012 11:45:11 -0600 Message-ID: <1337017511.1503.70.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: csh builtin command problems X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2012 17:46:20 -0000 On Wed, 2012-05-09 at 21:34 -0400, Robert Simmons wrote: > I'm trying to use sysv style echo in /bin/csh and I've hit a wall as > to how to get it to work. > > The following does not have the outcome that I'm looking for: > > # echo_style=sysv > # echo test\ttest > test > # cat test > testttest > > I want this: > > # echo test\ttest > test > # cat test > test test > > Any thoughts? What I see on 8.3 is this: % set echo_style=sysv % echo test\ttest testttest % echo "test\ttest" test test % So it seems from this very minimal test that the implementation of echo is correct, but the parsing of the command line in csh requires that the \t in the arg be protected with quotes. (I don't normally spend any longer in csh than it takes for a .cshrc to launch bash, and even that's only on systems where I don't control /etc/passwd to just use bash directly.) -- Ian