OCaml Forge
Feature Requests
Search the entire project
This project's trackers
This project's releases
This project's news
Project
People
Advanced search
Log In
New Account
Home
My Page
Projects
Code Snippets
OUnit
Summary
Activity
Tracker
Lists
News
SCM
Files
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_to
none
2012-09-05 03:57
gildor-admin