Date: Mon, 14 May 2012 11:45:11 -0600 From: Ian Lepore <freebsd@damnhippie.dyndns.org> To: Robert Simmons <rsimmons0@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: csh builtin command problems Message-ID: <1337017511.1503.70.camel@revolution.hippie.lan> In-Reply-To: <CA%2BQLa9DGKQjJPsdkU=eQb08xdMeg11rhDjv721wg9qCRLaO5Fw@mail.gmail.com> References: <CA%2BQLa9DGKQjJPsdkU=eQb08xdMeg11rhDjv721wg9qCRLaO5Fw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1337017511.1503.70.camel>