Feature Pulled

- Removed the feature that allows commands to be piped in to stdin,
  and appended to any existing command line.  This feature is
  conditionally compiled, controlled by the FEATURE_STDIN define in
  main.h
- Many unit tests contained "echo '-- y'", and now use "echo 'y'"
  because the '--' is no longer supported on stdin.
- Thanks to the IRC team for testing, including Bryce Harrington,
  Sam Stuck, Owen Clarke, Greg Grossmeier.
This commit is contained in:
Paul Beckingham 2012-03-17 10:46:05 -04:00
parent 80d6655709
commit ac4d90f1f6
18 changed files with 66 additions and 65 deletions

View file

@ -32,7 +32,6 @@
#include <algorithm>
#include <stdlib.h>
#include <unistd.h>
#include <sys/select.h>
#include <Context.h>
#include <Directory.h>
#include <Date.h>
@ -41,9 +40,14 @@
#include <text.h>
#include <util.h>
#include <i18n.h>
#include <main.h>
#include <A3.h>
#include <cmake.h>
#ifdef FEATURE_STDIN
#include <sys/select.h>
#endif
extern Context context;
// Supported modifiers, synonyms on the same line.
@ -279,6 +283,7 @@ bool A3::is_command (
// Add an Arg for every word from std::cin.
void A3::append_stdin ()
{
#ifdef FEATURE_STDIN
// Use 'select' to determine whether there is any std::cin content buffered
// before trying to read it, to prevent blocking.
struct timeval tv;
@ -305,6 +310,7 @@ void A3::append_stdin ()
}
}
}
#endif
}
////////////////////////////////////////////////////////////////////////////////