shell scripts and comand arguments

Jonathan Belson jon at
Sun Jun 1 14:53:11 BST 2003


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:

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


which confuses it no end.

Is there a simple solution to this problem or must I do it another way?


More information about the Ukfreebsd mailing list