Changeset 186
- Timestamp:
- 02/22/05 18:29:37 (4 years ago)
- svk:copy_cache_prev:
- 1041
- Files:
-
- 4 modified
-
AUTHORS (modified) (1 diff)
-
MANIFEST (modified) (1 diff)
-
src/Main.hs (modified) (3 diffs)
-
src/Posix.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
AUTHORS
r161 r186 14 14 Patrick R. Michaud 15 15 Pernod 16 Rafael Garcia-Suarez (RGARCIA) 16 17 Richard Soderberg (RSOD) 17 18 Larry Wall (LWALL) -
MANIFEST
r169 r186 72 72 t/op/inc.t 73 73 t/op/join.t 74 t/op/magic.t 74 75 t/op/pair.t 75 76 t/op/pop.t -
src/Main.hs
r147 r186 23 23 import Help 24 24 import Pretty 25 import Posix 25 26 26 27 main :: IO () … … 95 96 runProgramWith :: (Env -> Env) -> (Val -> IO ()) -> VStr -> [VStr] -> String -> IO () 96 97 runProgramWith fenv f name args prog = do 98 environ <- getEnvironment 97 99 env <- emptyEnv 98 100 [ Symbol SGlobal "@*ARGS" (Val $ VList $ map VStr args) … … 101 103 -- , Symbol SGlobal "$*STDIN" (Val $ VStr str) 102 104 , Symbol SGlobal "$*END" (Val VUndef) 105 , Symbol SGlobal "%*ENV" (Val . VHash . MkHash . listToFM $ environ) 103 106 ] 104 107 -- str <- return "" -- getContents -
src/Posix.hs
r170 r186 22 22 removeLink, 23 23 sleep, 24 getEnvironment, 24 25 ) where 25 26 26 27 #ifdef PUGS_HAVE_POSIX 28 import System.Posix.Env 27 29 import System.Posix.Files 28 30 import System.Posix.Process … … 48 50 sleep _ = fail "'sleep' not implemented on this platform." 49 51 52 getEnvironment :: IO [(String, String)] 53 getEnvironment = [] 54 50 55 #endif
