I have a value stored in a variable that I want to use as part of a wildcard, like this:
set extension (somecommand)
cp *$extension ~/filezone
But the *
prevents the variable from being dereferenced. How can I use the value stored in a variable as part of a wildcard?