[commit: packages/process] master: Add a remark on how relative cmdspec is resolved w.r.t. to cwd. (681aaee)

git at git.haskell.org git at git.haskell.org
Wed Jul 19 21:16:59 UTC 2017


Repository : ssh://git@git.haskell.org/process

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/681aaeedf8b3b28f57ff2b15074010dfdad173fe/process

>---------------------------------------------------------------

commit 681aaeedf8b3b28f57ff2b15074010dfdad173fe
Author: Edward Z. Yang <ezyang at cs.stanford.edu>
Date:   Fri Nov 11 09:34:12 2016 -0500

    Add a remark on how relative cmdspec is resolved w.r.t. to cwd.
    
    Signed-off-by: Edward Z. Yang <ezyang at cs.stanford.edu>


>---------------------------------------------------------------

681aaeedf8b3b28f57ff2b15074010dfdad173fe
 System/Process/Common.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/System/Process/Common.hs b/System/Process/Common.hs
index 0c55ff1..167ae61 100644
--- a/System/Process/Common.hs
+++ b/System/Process/Common.hs
@@ -64,7 +64,7 @@ type PHANDLE = CPid
 #endif
 
 data CreateProcess = CreateProcess{
-  cmdspec      :: CmdSpec,                 -- ^ Executable & arguments, or shell command
+  cmdspec      :: CmdSpec,                 -- ^ Executable & arguments, or shell command.  Relative paths are resolved with respect to 'cwd' if given, and otherwise the current working directory.
   cwd          :: Maybe FilePath,          -- ^ Optional path to the working directory for the new process
   env          :: Maybe [(String,String)], -- ^ Optional environment (otherwise inherit from the current process)
   std_in       :: StdStream,               -- ^ How to determine stdin



More information about the ghc-commits mailing list