mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-08 06:10:36 +02:00
Shell
- Coded around the absence of wordexp on some BSD systems.
This commit is contained in:
parent
6018a174e0
commit
3e04ff5e44
5 changed files with 52 additions and 94 deletions
|
@ -1,7 +1,7 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
// taskwarrior - a command line task list manager.
|
||||
//
|
||||
// Copyright 2006-2014, Paul Beckingham, Federico Hernandez.
|
||||
// Copyright 2006 - 2014, Paul Beckingham, Federico Hernandez.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -49,26 +49,5 @@ private:
|
|||
Readline& operator= (const Readline&); // Don't implement.
|
||||
};
|
||||
|
||||
// RAII for wordexp_t
|
||||
class Wordexp
|
||||
{
|
||||
public:
|
||||
Wordexp (const std::string& str);
|
||||
~Wordexp ();
|
||||
|
||||
int argc ();
|
||||
char** argv ();
|
||||
char* argv (int i);
|
||||
|
||||
void escapeSpecialChars(std::string& str);
|
||||
|
||||
private:
|
||||
#ifdef HAVE_WORDEXP_H
|
||||
wordexp_t _p;
|
||||
#else
|
||||
std::string _input;
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue