[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: [BUG REPORT] WML 2.0.5, Solaris2.6
- From: Denis Barbier <nospam@thanx>
- Date: Thu, 26 Oct 2000 18:14:08 +0200
On Thu, Oct 26, 2000 at 08:01:40AM +0200, duenki@isi.ee.ethz.ch wrote:
> Package: WML 2.0.5
> Operating System: Solaris2.6
>
> Problem Description:
> | Hi,
> |
> | I think that wmk is broken, at least for me. I get
> | the following error:
> |
> | wml -n -oLANG_VAR:computing.var -o(ALL-LANG_*)+LANG_EN:computing.en.html -o(ALL-LANG_*)+LANG_DE:computing.de.html computing.wml
> | sh: syntax error at line 1: `(' unexpected
> | ** WMk:Break: Error in WML (rc=512)
[...]
You are right, and this is very annoying.
If i find time tonight, i will check why this bug has been introduced
and if the patch below is safe. A new release will follow shortly.
--- wmk.src 2000/10/02 08:18:15 1.31
+++ wmk.src 2000/10/26 16:07:03
@@ -199,9 +199,10 @@
# when shell metachars exists
sub quotearg {
my ($arg) = @_;
- if ($arg !~ m|^'.*'$|) {
- if ($arg =~ m|[\$"`]|) {
- $arg =~ s|([\$"`])|\\$1|sg;
+ if ($arg !~ m|^'.*'$| and $arg !~ m|^".*"$|) {
+ if ($arg =~ m|[\[\]()!*?&"']|) {
+ $arg =~ s|'|\\'|sg;
+ $arg = "'".$arg."'";
}
}
return $arg;
--
Denis Barbier
WML Maintainer
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com