Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!linus!philabs!cmcl2!seismo!brl-tgr!tgr!jra@BRL.ARPA From: jra@BRL.ARPA (VLD/ATB) Newsgroups: net.unix Subject: eval Message-ID: <11156@brl-tgr.ARPA> Date: Thu, 30-May-85 13:39:29 EDT Article-I.D.: brl-tgr.11156 Posted: Thu May 30 13:39:29 1985 Date-Received: Sat, 1-Jun-85 12:18:43 EDT Sender: news@brl-tgr.ARPA Lines: 24 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