id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
6094	runInteractiveProcess not using new PATH	GregWeber	GregWeber	"run the below program with something like: rm -r foo; ghc env.hs && ./env

{{{
import System.Process( runInteractiveProcess, waitForProcess, ProcessHandle )
import System.Directory

main = do
  createDirectory ""foo""
  writeFile ""foo/bar"" ""#!/bin/sh\necho baz""
  (inH,outH,errH,procH) <- runInteractiveProcess ""chmod"" [""+x"", ""./foo/bar""] Nothing $ Just [(""PATH"",""./foo"")]
  ex <- waitForProcess procH
  print ex -- ExitSuccess
  (inH,outH,errH,procH) <- runInteractiveProcess ""env"" [""PATH=./foo"", ""bar""] Nothing $ Just [(""PATH"",""./foo"")]
  ex <- waitForProcess procH
  print ex -- ExitSuccess
  (inH,outH,errH,procH) <- runInteractiveProcess ""bar"" [] Nothing $ Just [(""PATH"",""./foo"")]
  ex <- waitForProcess procH
  print ex -- ExitFailure 127 (indicates command not found)
}}}"	task	closed	normal	7.6.1	Compiler	7.4.1	fixed			Unknown/Multiple	Unknown/Multiple	None/Unknown	Unknown				
