OCaml Forge
SCM

Detail: [#1150] add ~env_export to assert_command

Feature Requests: Browse | Download .csv | Monitor

[#1150] add ~env_export to assert_command

Date:
2012-05-09 23:03
Priority:
3
State:
Open
Submitted by:
Sylvain Le Gall (gildor-admin)
Assigned to:
Sylvain Le Gall (gildor-admin)
Component:
None
Operating System:
None
Product:
None
 
Summary:
add ~env_export to assert_command

Detailed description
Something that allow to really export like in standard sh:

let env_export nm vl env =
let replaced = ref false in
for i = 0 to Array.length env - 1 do
if OASISString.starts_with ~what:(nm^"=") env.(i) then
begin
env.(i) <- nm^"="^vl;
replaced := true
end
done;
if not !replaced then
Array.append env [|nm^"="^vl|]
else
env
in

Followup

No Followups Have Been Posted

Attached Files:

Changes:

Field Old Value Date By
assigned_tonone2012-09-05 03:57gildor-admin