From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 17:51:23 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 646A4106566B for ; Mon, 14 May 2012 17:51:23 +0000 (UTC) (envelope-from rsimmons0@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 168938FC12 for ; Mon, 14 May 2012 17:51:22 +0000 (UTC) Received: by vbmv11 with SMTP id v11so6962363vbm.13 for ; Mon, 14 May 2012 10:51:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=PpDJiJ1rb4YK+0d59XqQMgq0A3lG8X3zlsUsfFDAnWk=; b=rFQfF+1d5086658Sk0yCwR/ZY849aGZ3QsEmnzhPSosVIb+OcgplkGYlOU1sSzRBbU 8Xw12myi5xZmmOW1mW0p9ecngybNLSXq7NLU+/vQPKjo73dB3X7Ue7vqSmotmg2CdDK3 OdDTXGwwSDF0uAxRin9AAdRNyUh9ssroJwE04MgJMzq1imOpEYMWOrnFHkZUc1RWWXaz L96MqF3l4g9dhpaBZmRNLSApHEposAGZ740sdne2Ul2Z5e4naAsbdJDf7DUEDjNcL99d XGFNxt9iswak6vKRe9Aj/f8ea/yjVfK2NWgBkJ+MWJDyFa2pFhCMhN+9T1M8W7xYkSKi HsQw== MIME-Version: 1.0 Received: by 10.220.218.208 with SMTP id hr16mr5504113vcb.49.1337017882387; Mon, 14 May 2012 10:51:22 -0700 (PDT) Received: by 10.52.112.167 with HTTP; Mon, 14 May 2012 10:51:22 -0700 (PDT) In-Reply-To: <1337017511.1503.70.camel@revolution.hippie.lan> References: <1337017511.1503.70.camel@revolution.hippie.lan> Date: Mon, 14 May 2012 13:51:22 -0400 Message-ID: From: Robert Simmons To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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:51:23 -0000 On Mon, May 14, 2012 at 1:45 PM, Ian Lepore wrote: > 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=3Dsysv >> # echo test\ttest > test >> # cat test >> testttest >> >> I want this: >> >> # echo test\ttest > test >> # cat test >> test =A0 =A0test >> >> Any thoughts? > > What I see on 8.3 is this: > > % set echo_style=3Dsysv > % echo test\ttest > testttest > % echo "test\ttest" > test =A0 =A0test > % > > 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. =A0(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.) Thanks. I should have tried double quotes. That works.