
14 Jul
2004
14 Jul
'04
5:01 p.m.
Index: ChangeLog from Benoît Perrot <benoit@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@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