[plt-scheme] process.ss can't find command

From: Jakub Piotr Cłapa (jpc-ml at zenburn.net)
Date: Wed Mar 12 10:39:42 EDT 2008

Stephen De Gabrielle wrote:
> Thanks for the tip,
> 
> I've only taken a brief look, but it seems a solution is to run the 
> config files ~/.profile /etc/profile in my system call. probably by 
> constructing a string or file to pass to or execute by 'system'
> 
> They should do no harm, modify path as needed, and work on linux's and 
> osx transparently (I haven't thought about windows yet)

Unless someone is not using bash. ;] The proper way is to remember the 
full path or launch the same exact shell the user sees in Terminal 
(which he choosen using chsh). Any other way will unfortunately lead to 
suprises and confusion. The hardcoded path is not that bad as it seems 
(especially since you may like to ship an svn binary with your app on OS 
X but allow the user to change the config to use his own).

This is how most programs on OS X handle it (TeXShop, AVRFuses).

-- 
regards,
Jakub Piotr Cłapa


Posted on the users mailing list.