[net.unix-wizards] strange thing in ` `

eric%cit-vax@sri-unix.UUCP (08/04/83)

The command 
	echo `echo '"[hello there]"'`
prints

there]"

instead of the expected 

"[hello there]"

The stuff inside the ` ` can be anything that prints
out "[hello there]" (with the double quotes). What is going on?
Where did

"[hello

go? This is in the C shell. The shell does the expected thing.

		    * Eric Holstege  Caltech, Pasadena, CA.
		    * eric@cit-vax   {ucbvax!cithep,research}!citcsv!eric

sdc@uvacs.UUCP (08/10/83)

References: sri-arpa.3810

Strange things happen when the program which is executed inside the
backtics (` `) produces characters which are special to csh.  The
left bracket is one such character.  The solution is to set and
unset the shell variable "noglob" around statements that define or reference
variables containing special characters.
Scott Carson
uvacs!sdc

gwyn%brl-vld@sri-unix.UUCP (08/10/83)

From:      Doug Gwyn (VLD/VMB) <gwyn@brl-vld>

Remember that "echo" is a built-in command in csh.  I suspect the
first "echo" triggered a built-in and the second "echo" ran from /bin
or somewhere.  Maybe this provides a clue.