Re: More on WMK lockup...
Denis Barbier <[email protected]> Mon, 3 Nov 2003 01:04:50 +0100
| Newsgroups | gmane.comp.web.wml |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Nov 01, 2003 at 10:48:24AM +1100, Darryl Smith wrote:
[...]
> while (1) {
> next if $str =~ s|^"([^"\\]*(?:\\.[^"\\]*)*)"(.*)$|$r .= $1, $2|e;
> print ("n $str \n");
> next if $str =~ s|^'([^'\\]*(?:\\.[^'\\]*)*)'(.*)$|$r .= $1, $2|e;
> print ("o $str\n");
> next if $str =~ s|^([^\s"']+)(.*)$|$r .= $1, $2|e;
> print ("p $str\n");
I initially replied before reading this message, which is very interesting.
With your input files, there is no reason for wmk to loop, the last test
should gobble -F and set $str='copy'.
You could try removing \s from the last bracketted expression, and also
make sure that your .wmkrc file contains only ASCII (e.g. with cat -v
or any hexadecimal editor.)
--
Denis Barbier
WML Maintainer
_____________________________________________________________________
Website META Language (WML) http://thewml.org
User Support Mailing List [email protected]
Automated List Manager [email protected]