[plt-scheme] system and system/exit-code under Mac OS X

From: Jens Axel Soegaard (jensaxel at soegaard.net)
Date: Mon Oct 29 13:35:51 EDT 2007

Eli Barzilay wrote:

>> The function "system" in (lib "process.ss") is defined as:
>>    (define (system str)
>>      (if (eq? (system-type) 'macos)
>> 	(subprocess #f #f #f "by-id" str)
>> 	(apply system* (shell-path/args "system" str))))
>> And the documentation for subprocess says that it
>> executes the command asynchronously, which seems fishy,
>> but maybe the "by-id" initiates some magic?
> That line is old code, which is not relevant to you -- your
> system-type should be `macosx', not `macos'.  (So the problem is
> there, but I don't know where it's coming from.)

You are right of course, system-type reports 'macosx .
I missed the x. Something else then. Hmm.

/Jens Axel

Posted on the users mailing list.