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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -