Output: SELECT "all files names in the PWD" FROM employee
================================================
Problem is that whenever I am passing a query \(The query result should be stored in a variable \) containing '*' and passing the variable to a script
then the in the variable "SELECT 'all files names in the PWD' FROM employee" is stored instead of the actual query "select * from employee " .
How to avoid special meaning of ''?
Here '\' before '' is also not working...
plz help...
Actually echo "$q" with double quotes prevents the globbing. The value in q does not have the wildcard expanded, it's when you use it without properly quoting it that you get the file names globbed.