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


_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to