Subject: Re: bin/17826: {t,}csh backquote/braces expansion bug
To: None <netbsd-bugs@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 08/04/2002 20:18:36
> If you write a program "foo" that prints
> 
>    echo '{'
> 
> and then type
> 
>    echo `foo`
> 
> tcsh incorrectly prints "Missing }."
> 
> Similarly, if you have foo print
> 
>    echo '{a,b,c}'
> 
> tcsh prints "echo 'a' 'b' 'c'".

Doesn't csh come with a disclaimer saying that its quoting
rules are non-obvious and that (from memory) 'although useful
for an interactive shell, csh isn't robust enough for scripts'.

It is generally much safer so include the output of `` in ""
(and most variable substitutions as well).

so
	echo "`foo`"
is much safer.

	David

-- 
David Laight: david@l8s.co.uk