[net.unix] eval

jra@BRL.ARPA (VLD/ATB) (05/30/85)

	In my documentation on the csh, the entry for eval says, "as in sh(1)".
However, I can't seem to get eval to work in csh. The following sh script
produces a list of filenames that contain the letters "box":

			#!/bin/sh

			COMMAND="ls | fgrep box"
			eval $COMMAND

	The following is an attempt to do the equivalent in a csh script:

			#!/bin/csh

			set COMMAND="ls | fgrep box"
			eval $COMMAND

	This, however, produces the same as the "ls" command alone. Can someone
tell me what I am missing?  Please understand that the above scripts are merely
meant to illustrate my problem, and I am not trying to find a long way to do
"ls *box*".

						Thanks,
						John