src/Pure/ML-Systems/smlnj.ML
changeset 40748 591b6778d076
parent 40627 becf5d5187cc
child 41411 3bcc3b9e1020
equal deleted inserted replaced
40747:889b7545a408 40748:591b6778d076
    12 use "ML-Systems/single_assignment.ML";
    12 use "ML-Systems/single_assignment.ML";
    13 use "ML-Systems/universal.ML";
    13 use "ML-Systems/universal.ML";
    14 use "ML-Systems/thread_dummy.ML";
    14 use "ML-Systems/thread_dummy.ML";
    15 use "ML-Systems/multithreading.ML";
    15 use "ML-Systems/multithreading.ML";
    16 use "General/timing.ML";
    16 use "General/timing.ML";
    17 use "ML-Systems/bash.ML";
       
    18 use "ML-Systems/ml_name_space.ML";
    17 use "ML-Systems/ml_name_space.ML";
    19 use "ML-Systems/ml_pretty.ML";
    18 use "ML-Systems/ml_pretty.ML";
    20 structure PolyML = struct end;
    19 structure PolyML = struct end;
    21 use "ML-Systems/pp_dummy.ML";
    20 use "ML-Systems/pp_dummy.ML";
    22 use "ML-Systems/use_context.ML";
    21 use "ML-Systems/use_context.ML";
   168 
   167 
   169 val cd = OS.FileSys.chDir;
   168 val cd = OS.FileSys.chDir;
   170 val pwd = OS.FileSys.getDir;
   169 val pwd = OS.FileSys.getDir;
   171 
   170 
   172 
   171 
   173 (* system command execution *)
       
   174 
       
   175 val bash_output = (fn (output, rc) => (output, mk_int rc)) o bash_output;
       
   176 
       
   177 
       
   178 (* getenv *)
   172 (* getenv *)
   179 
   173 
   180 fun getenv var =
   174 fun getenv var =
   181   (case OS.Process.getEnv var of
   175   (case OS.Process.getEnv var of
   182     NONE => ""
   176     NONE => ""