On Monday 15 May 2017 05:46 PM, Denis Kudriashov wrote:
OSSUnixSubprocess new
shellCommand: 'ls ~';
redirectStdout;
runAndWaitOnExitDo: [ :process :outString  |
^outString
].

What exactly are you trying to do? If you want the list of entries in ~ directory, you could use FileDirectory methods:

(FileDirectory on: (OSProcess thisOSProcess environmentAt: 'HOME')) entries collect: [ :f | f name ].

Regards .. Subbu

Reply via email to