[darcs-devel] [issue1545] account for missing PATH when calling other software
Eric Kow
bugs at darcs.net
Sat Oct 10 21:23:59 UTC 2009
Eric Kow <kowey at darcs.net> added the comment:
Thanks to this follow-up I was able to do a tiny bit of digging through the
Darcs code, I can reproduce the problem with a tiny Haskell program:
-- blows up if you unset PATH
import System.Directory
main = findExecutable "diff"
The good news is that you can catch the exception that findExecutable throws.
Looks like some fairly straightforward improvements to add to Darcs.External
----------
assignedto: attila.lendvai ->
nosy: +jaredj
priority: bug -> feature
status: waiting-for -> need-implementation
title: something calls getEnv for $PATH, but it throws if it does not exist -> account for missing PATH when calling other software
topic: +ProbablyEasy, UI
__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1545>
__________________________________
More information about the darcs-devel
mailing list