[SM-Discuss] Using dialog for the net-conf spell
iuso at sourcemage.org
Wed Apr 12 12:55:48 EDT 2006
On Wednesday 12 April 2006 05:29, Matthew Clark wrote:
> I recently began trying to improve the net-tools spell by replacing that
> long list of questions with a dialog. Since spells must be able to run
> without user intervention, I have made it so that a question is asked to
> allow the user to use the dialog if they wish. Answering N (which is
> default) to the question will bypass the dialog and answer Y to all
> components of net-tools (except moutnnetwork and network, of course), as
> the spell is currently written to do.
> Anyway, I took a good long look at the apache2 spell to see how they did
> it, as my bash scripting is crap. I am at the point now, in the devel
> grimoire, that I can't seem to get the responses to dialog to make the
> spell work.
> Since I am limited in my ability to script it well, I am asking a fellow
> developer (or anyone who can bash-script lika muthaphukka) to take a look.
> Any takers? The WIP file has been in devel for quite a while, and I'm
> about to give up and revert...
> - Matthew Clark (MaffooClock)
I took a quick look at the options directory, and it seems that the problem is
in your variables having spaces in them. Dialog will freak out because it
counts the words as separate entries. So they should be "Use_this_and_that?"
and so on.
Hope this helps!
More information about the SM-Discuss