shell scripts and comand arguments
Jonathan Belson
jon at witchspace.com
Sun Jun 1 14:53:11 BST 2003
Hiya
I was making some tweaks to a script I wrote to 'mhonarc' freebsd-*
mailing lists, when I ran into a problem with substitutions. Here's
an example:
list="freebsd-ports"
title="$list archive"
args="-title \"$title\" -add . -outdir ."
mhonarc $args
$args expands to
-title "freebsd-ports archive" -add . -outdir .
which is what you'd expect, but mhonarc sees
-title "free-ports
followed by
archive"
which confuses it no end.
Is there a simple solution to this problem or must I do it another way?
--Jon
http://www.witchspace.com
More information about the Ukfreebsd
mailing list