[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] FilePlugin>>primitiveFileAtEnd for non-regular files (#232)
CyrilFerlicot
notifications at github.com
Fri Apr 6 09:45:19 UTC 2018
Yes sorry I was a little in a hurry :)
OS:
```
~> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
```
Pharo version: Pharo 61 60540
VM: Latest VM 64bits (we do not test the latest 32bits vm so it's maybe the same)
We use OSProcess this way:
```
compileFile: aFile
| thisProcess currentPath result command |
thisProcess := OSProcess thisOSProcess.
currentPath := thisProcess environment at: #PATH.
thisProcess environment at: #PATH put: self binDirectory , ':' , currentPath.
command := PipeableOSProcess command: ( '"' , self binPath , '" "' , aFile fullName , '"').
[ result := command outputAndError ] ensure: [ command close ].
thisProcess environment at: #PATH put: currentPath.
^ result first
```
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/232#issuecomment-379204116
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20180406/96071d05/attachment.html>
More information about the Vm-dev
mailing list