- Changed FindReadline.cmake to search for Readline in macports paths before system paths. - Fixed CTRL-D. Now it exits tasksh. - Fixed a crash when a task description had any special characters.

This commit is contained in:
Haitham Gad 2013-03-17 14:10:17 -04:00 committed by Paul Beckingham
parent 2a7c8c2aad
commit e6b7445788
4 changed files with 124 additions and 22 deletions

View file

@ -38,7 +38,7 @@ class Readline
{
public:
static std::string gets (const std::string& prompt);
static bool interactive_mode (const std::istream& in);
static bool interactiveMode (const std::istream& in);
private:
// No construction or destruction.
@ -52,11 +52,14 @@ private:
class Wordexp
{
public:
Wordexp (const std::string &str);
Wordexp (const std::string& str);
~Wordexp ();
int argc ();
char** argv ();
char* argv (int i);
void escapeSpecialChars(std::string& str);
private:
wordexp_t _p;