From f4e8fd2e47d1bfa0c297730f32d1a7f22aa85155 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 12 Jan 2014 14:59:21 -0500 Subject: [PATCH] Readline - Moved non-wordexp substitute inside "#else". --- src/shell/Readline.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/shell/Readline.cpp b/src/shell/Readline.cpp index b7508ee2d..bbcca232b 100644 --- a/src/shell/Readline.cpp +++ b/src/shell/Readline.cpp @@ -77,10 +77,13 @@ bool Readline::interactiveMode (const std::istream& in) //////////////////////////////////////////////////////////////////////////////// Wordexp::Wordexp (const std::string &str) { +#ifdef HAVE_WORDEXP_H + std::string strCopy (str); + escapeSpecialChars(strCopy); + wordexp (strCopy.c_str (), &_p, 0); +#else _input = str; escapeSpecialChars(_input); -#ifdef HAVE_WORDEXP_H - wordexp (_input.c_str (), &_p, 0); #endif }