mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Readline
- Moved non-wordexp substitute inside "#else".
This commit is contained in:
parent
cdc0c0a01a
commit
f4e8fd2e47
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue