[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Avoiding pattern expansion in bash?



Olle Eriksson <pt00oer@student.bth.se> said on Sun, 10 Oct 2004 06:18:33 +0200:
> Ah.. I was missing the '' around the expression when calling the script. I 
> was experimenting with all sorts of things inside the script file and 
> forgot about that. Ok now I can get this to work. Thanks.
> 
> Just out of curiousity, is it possible to prevent the parameter from being 
> expanded without those '' on the command line?

man bash

set -f



Now, if only there was a way to temporarily shut off *all*
expansion. And then be greedy, and say shut off interpretation of
everything other than a newline

So I could then say:
> m http://www.blah.com/asd.pl?param1=asd&param2=asd$bsd$

to open another window to url
"http://www.blah.com/asd.pl?param1=asd&param2=asd$bsd$"; in my browser,
and not have to quote everything.

-- 
TimC -- http://astronomy.swin.edu.au/staff/tconnors/
Weeks of coding can save you hours of planning. --unk



Reply to: