On Jun 24, 2010, at 3:33 07AM, Henrik Sperre Johansen wrote:
On 24.06.2010 02:41, Henrik Sperre Johansen wrote:
On 23.06.2010 23:13, Schwab,Wilhelm K wrote:
To get going again, I hacked FileDirectory>>fileExists: to answer true when passed '/bin/sh' and suddenly I can pipe again, so there has been some kind of change in testing for files.
-----Original Message----- From: pharo-project-bounces@lists.gforge.inria.fr [mailto:pharo-project-bounces@lists.gforge.inria.fr] On Behalf Of Schwab,Wilhelm K Sent: Wednesday, June 23, 2010 4:05 PM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] ConfigurationOfOSProcessCommandShell
PipeableOSProcess is broken on Linux. It appears to be because
FileDirectory default fileExists:'/bin/sh'
is returning false in 1.1. Any ideas?
Bill
Difference between the links was sh was relative (sh -> dash), while my replacement was absolute (sh -> /bin/dash). FilePlugin primitiveFileOpen opens the latter, but returns nil with the first, thus fileExists fails... I wrote a small c program simply opening sh with fopen, and that worked as expected, so there's probably an error in the wrapping plugin code somewhere :/
Cheers, Henry
After some investigation, and a report to the dev list, it turned out a fix was already present in Cog :) If you need a VM working with 1.1 urgently, the modified file (for a 2202 build) is attached to the 4th post in http://forum.world.st/Unix-VM-alias-resolving-bug-td2267360.html#a2267360 . Cheers, Henry