--- a/PipeStream.st Mon Sep 24 21:19:57 2018 +0200
+++ b/PipeStream.st Tue Sep 25 10:33:06 2018 +0200
@@ -770,6 +770,22 @@
"Modified (comment): / 31-05-2018 / 08:56:06 / Claus Gittinger"
!
+outputFromCommand:aCommand errorDisposition:errorDispositionSymbolOrStream
+ "open a pipe reading from aCommand and return the complete output as a string.
+ If the command cannot be executed, return nil.
+ The command will be executed in smalltalk's current directory.
+ errorDisposition may be a stream or one of #discard, #inline or #stderr (default).
+ #discard causes stderr to be discarded (/dev/null),
+ #inline causes it to be merged into the PipeStream and
+ #stderr causes it to be written to smalltalk's own stderr.
+ a stream causes stderr to be sent to that stream (internal or external)
+ Nil is treated like #stderr"
+
+ ^ self outputFromCommand:aCommand errorDisposition:errorDispositionSymbolOrStream inDirectory:nil
+
+ "Created: / 25-09-2018 / 10:32:49 / Claus Gittinger"
+!
+
outputFromCommand:aCommand errorDisposition:errorDispositionSymbolOrStream inDirectory:aDirectoryOrNil
"open a pipe reading from aCommand and return the complete output as a string.
If the command cannot be executed, return nil.