Subject: Re: bin/17826: {t,}csh backquote/braces expansion bug
To: None <>
From: David Laight <>
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).

	echo "`foo`"
is much safer.


David Laight: