#FEATURE by exept
authorClaus Gittinger <cg@exept.de>
Thu, 29 Aug 2019 00:55:50 +0200
changeset 24682 b56fdbd5003f
parent 24681 8c57b9148dc9
child 24683 987525476817
#FEATURE by exept class: OSProcess added: #commandString comment/format in: #command
OSProcess.st
--- a/OSProcess.st	Wed Aug 28 23:52:26 2019 +0200
+++ b/OSProcess.st	Thu Aug 29 00:55:50 2019 +0200
@@ -390,7 +390,7 @@
 !
 
 command
-    "the OS (shell-) command"
+    "the OS (shell-) command, as string or string-array"
 
     ^ command
 
@@ -453,6 +453,15 @@
     lineWise := lineWiseArg.
 !
 
+commandString
+    "the OS (shell-) command, as string"
+
+    command isString ifTrue:[^ command].
+    ^ command asStringWith:' '
+
+    "Created: / 10.11.1998 / 21:27:07 / cg"
+!
+
 directory
     "the directory where executed"