On Sat, Oct 13, 2007 at 09:09:59AM +0200, Martin Kersten wrote:
Stefan Manegold wrote:
Hi,
in Kambiz' case, the error message is not complaining about an extra space, but about the '\' as first character on the line.
No, the error indicates that '\' is sent to the server, where the MAL parser does not recognize it as a legal start. '\' as first characters are already trapped in the basic readClient() function, before the parser takes control. That's why I am suspicious if there is a leading blanc character.
I just compared Kambiz v ERROR = !SyntaxException:parseError:\h !SyntaxException:parseError:^<identifier> expected ^ with Martin v ERROR = !SyntaxException:parseError: \h !SyntaxException:parseError:^<identifier> expected ^ In the second case (Martin) there's indeed a ' ' that the error message complains about, while in the first case (Kambiz) there is no ' ', but the error message complains about the '\' --- at least that's how I read the above error messages. Stefan
Hence, the usual questions:
Kambiz,
which version of MonetDB are you using, and how did you install it --- if I recall correctly from previous mails, you did install using the monetdb_install.sh script, right, and hence use the super source tarball? But which version?
Further, a simple mclient -l mal --help (with a running mserver5) will reveal whether readline support (and hence \h) is indeed enabled in your build of MonetDB.
Finally, do other \* commands work?
Stefan
On Sat, Oct 13, 2007 at 08:21:01AM +0200, Martin Kersten wrote:
darabi@web.de wrote:
Hello,
Why the option \h - show the readline history
mclient.exe -lsql --help
Is not available on windows? Is an design feature or a bug?
There is no readline on Windows, nor a need for it.
is \h supposed to work on Linux (Ubuntu feisty)?
I get:
$ mclient -l mal -d demo -H mal>\h MAPI = monetdb@localhost:50000 QUERY = \h ERROR = !SyntaxException:parseError:\h !SyntaxException:parseError:^<identifier> expected
However, readline functionality is present: Ctrl-p, Ctrl-n, Ctrl-a, Ctrl-e all work correctly.
Problem NOTconfirmed on Fedora. It works with both empty/non-empty history file. However, '\' should be the first character of the line, otherwise you indeed get the error being mentioned. Please check. If it fails then a deeper analysis of the Ubuntu version is needed.
mk@gio::~> mclient -l mal -d demo -H mal>\h mal>io.print(1); [ 1 ] mal>\h 1 \h 2 io.print(1); mal>\h 1 \h 2 io.print(1); 3 \h mal> \h MAPI = monetdb@localhost:50000 QUERY = \h ERROR = !SyntaxException:parseError: \h !SyntaxException:parseError:^<identifier> expected mal>
Kambiz
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |