Index: ChangeLog
from Benoît Perrot <benoit(a)lrde.epita.fr>
* src/shell.cc (readline): When the true readline is lacking, use
STL's getline instead of istream::operator>> to get a line instead
of a word.
Reported by Julien Vanegue.
2004-07-14 Benoît Perrot <benoit(a)lrde.epita.fr>
Index: src/shell/shell.cc
--- src/shell/shell.cc (revision 110)
+++ src/shell/shell.cc (working copy)
@@ -58,7 +58,7 @@
#else // !HAVE_READLINE_READLINE_H
std::cout << prompt;
- std::cin >> line;
+ getline(std::cin, line);
return !std::cin.eof();
#endif // HAVE_READLINE_READLINE_H
Index: ChangeLog
from Benoît Perrot <benoit(a)lrde.epita.fr>
* INSTALL: Explain --with-readline-{includes,library} usage.
Suggested by Marco Tessari.
Index: INSTALL
--- INSTALL (revision 109)
+++ INSTALL (working copy)
@@ -10,7 +10,8 @@
* GNU make
The interactive shell is more ergonomic when libreadline is installed
-on the system, but it is not mandatory to build Nolimips.
+on the system, but it is not mandatory to build Nolimips:
+ * libreadline
Extra development tools are needed to build a copy from Nolimips' repository:
@@ -36,11 +37,24 @@
--------------------
The following command will check your system configuration and prepare
-Nolimips for an installation in /usr/local. To specify another directory,
-use the --prefix option of configure (see ./configure --help):
+Nolimips for an installation in `/usr/local'. To specify another directory,
+use the `--prefix' option of configure (see ./configure --help):
$ ./configure
+By default, the configure script assumes that Nolimips must be built
+with readline. If the readline library or its include files cannot be
+found in standard path, the script will complain (but not fail, as if
+`--without-readline' was used). To precise the path to them, use the
+options `--with-readline-includes' and `--with-readline-library':
+
+ $ ./configure --with-readline-includes=/path/to/readline-includes \
+ --with-readline-library=/path/to/readline-library
+
+With `/path/to/readline-includes' containing a subdirectory named
+`readline/' containing the file `readline.h', and `/path/to/readline-library'
+containing the library `libreadline-XXX.a'.
+
Then build Nolimips:
$ make && make check
Spam detection software, running on the system "kualalumpur.lrde.epita.fr", has
identified this incoming email as possible spam. The original message
has been attached to this so you can view it (if it isn't spam) or block
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: military hutchinson ammo sc holocaust crave cutlet
slurry nut professional birdlike *Opt-in Em@il Specials for July 2004*
[...]
Content analysis details: (8.7 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-0.0 BAYES_44 BODY: Bayesian spam probability is 44 to 50%
[score: 0.4407]
0.1 HTML_FONTCOLOR_BLUE BODY: HTML font color is blue
0.2 HTML_TAG_BALANCE_A BODY: HTML has excess "a" close tags
0.1 HTML_MESSAGE BODY: HTML included in message
0.1 HTML_FONTCOLOR_UNSAFE BODY: HTML font color not in safe 6x6x6 palette
0.3 MIME_HTML_ONLY BODY: Message only has text/html MIME parts
0.6 HTML_FONT_INVISIBLE BODY: HTML font color is same as background
0.1 HTML_FONTCOLOR_RED BODY: HTML font color is red
0.1 BIZ_TLD URI: Contains a URL in the BIZ top-level domain
0.7 RCVD_IN_DSBL RBL: Received via a relay in list.dsbl.org
[<http://dsbl.org/listing?ip=64.231.101.118>]
3.5 RCVD_IN_NJABL_DIALUP RBL: NJABL: dialup sender did non-local SMTP
[64.231.101.118 listed in dnsbl.njabl.org]
2.6 RCVD_IN_DYNABLOCK RBL: Sent directly from dynamic IP address
[64.231.101.118 listed in dnsbl.sorbs.net]
0.1 RCVD_IN_NJABL RBL: Received via a relay in dnsbl.njabl.org
[64.231.101.118 listed in dnsbl.njabl.org]
0.1 RCVD_IN_SORBS RBL: SORBS: sender is listed in SORBS
[64.231.101.118 listed in dnsbl.sorbs.net]
The original message was not completely plain text, and may be unsafe to
open with some email clients; in particular, it may contain a virus,
or confirm that your address can receive spam. If you wish to view
it, it may be safer to save it to a file and open it with an editor.