1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-27 12:41:00 +01:00

before merging executeAndPrintShellCommand to runProgram

This commit is contained in:
Wouter den Breejen 2007-06-28 11:05:11 +00:00
parent 3d22bd50b3
commit 1c0b052243
6 changed files with 111 additions and 50 deletions

View file

@ -267,6 +267,8 @@ Strings unpackStrings(const string & s);
/* String tokenizer. */
Strings tokenizeString(const string & s, const string & separators = " \t\n\r");
/* String tokenizer for commandline agruments. */
Strings tokenizeStringWithQuotes(const string & s);
/* Convert the exit status of a child as returned by wait() into an
error string. */
@ -291,7 +293,7 @@ string trimr(const string & s);
string trim(const string & s);
//excecute a shell command
void executeAndPrintShellCommand(const string & command, const string & commandName);
void executeAndPrintShellCommand(const string & command, const string & commandName, const bool & captureOutput);
//Convert time_t to a string
string time_t2string(const time_t & t);