I am using csh and getting the error "find: No match." but I cannot figure out why. What I am trying to do is set the find command to a variable and then execute the variable as a command. I ran it through a debugger and it looks like $FIND is getting set but the find command can not actually be found. Here is what the debugger produced:
The actual code states:
set LIST = "find orion/ic -path *arg*"
${LIST} -name "*.ic"
However, the code does work when *arg* is not included in the definition of $LIST. *arg* does need to be in quotes though.
set LIST = "find orion/ic -path"
${LIST} "*arg*" -name "*.ic"
As a result, I tried to put quotes around *arg* when it was part of $LIST, but I received the same "No match" error.
This code is being added to an already existing script, so csh MUST be used.