How to escape wildcard expansion in a variable in bash? -
how escape wildcard expansion in variable name?
cp="lib/*" command="java $variables -cp $cp someclass" echo $command echoing command causes wildcard expansion.
echo "$command" using quotes prevents glob being expanded.
by way, see "i'm trying put command in variable, complex cases fail!"
Comments
Post a Comment