Will Dyson on Sat, 30 Nov 2002 06:30:08 -0500 |
Michael C. Toren wrote: What you're really asking bash to do is expand the variable $COMMAND_OPTIONS twice -- once to find it's contents, and once more to perform quote expansion on those contents. You could try something along the lines of: Thanks, that was helpful. It solved the original problem, anyway. However, it has the side effect of performing wildcard expansion on any '*' charecters that happen to be in the command line, even if they are single-qouted. As you can see from the script I posted in response to Sean, the program I'm using (duplicity), can take such an argument. Is there any way that I can simply include a litteral single quote charecter in a single-quoted string in bash? I tried escapeing them with a backslash, but that does not have the desired effect (as it would in perl). FOO='bar \' #bash thinks the qouted string is over' -- Will Dyson "Back off man, I'm a scientist!" -Dr. Peter Venkman _________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce General Discussion -- http://lists.netisland.net/mailman/listinfo/plug
|
|