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
Show replies by date