[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
prolog options
- From: "Albert REINER" <nospam@thanx>
- Date: Sun, 1 Oct 2000 00:30:55 +0200
Saluton,
I think it would be a good idea to have the possibility to pass an
option to a prolog script, and it seems that it would be simple (I am
still using wml 2.0.1, I have to confess; simply disregard this mail
if this facility is already there in the newer versions).
At least for 2.0.1, all one has to do is to make sure that wml's
$prolog variable has the correct quotes, and then I can give an
argument like -P "program --option".
----------------------------------------------------------------
*** wml.old Sun Oct 1 00:00:58 2000
--- wml.new Sun Oct 1 00:09:43 2000
***************
*** 1039,1045 ****
# determine prologs
$prolog = '';
foreach $p (@opt_P) {
! $prolog .= " -P '$p'";
}
$defipp = '';
--- 1039,1045 ----
# determine prologs
$prolog = '';
foreach $p (@opt_P) {
! $prolog .= " -P \"$p\"";
}
$defipp = '';
----------------------------------------------------------------
And in wmk, we need:
----------------------------------------------------------------
*** /usr/local/bin/wmk Sun May 28 16:58:41 2000
--- wmk Sun Oct 1 00:23:34 2000
***************
*** 215,221 ****
foreach $a (@opt_D) { $OD .= ' -D "'."earg($a).'"'; }
$OP = '';
! foreach $a (@opt_P) { $OP .= ' -P '.$a; }
$OE = '';
foreach $a (@opt_E) { $OE .= ' -E '.$a; }
--- 215,222 ----
foreach $a (@opt_D) { $OD .= ' -D "'."earg($a).'"'; }
$OP = '';
! foreach $a (@opt_P) { $OP .= " -P \"$a\""; }
$OE = '';
foreach $a (@opt_E) { $OE .= ' -E '.$a; }
----------------------------------------------------------------
What do you think of it?
Albert.
--
--------------------------------------------------------------------------
Albert Reiner <areiner@tph.tuwien.ac.at>
Deutsch * English * Esperanto * Latine
--------------------------------------------------------------------------
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com