N0REP0
### : setenv & build env rewriting :
### opam switch create rewriting --empty
### : Test for #4861
### <pkg:multipath.1>
opam-version: "2.0"
setenv: [
  [ PATH += "XXX:\\" ]
  [ PATH += "C:\\Devel\\bin1;C:\\Devel\\bin2;\"C:\\Devel\\bin3;\";C:\\Devel\\bin4;ZZZ:\\" ]
]
x-env-path-rewrite: [
  [ PATH false ]
]
### opam install multipath -yv
The following actions will be performed:
=== install 1 package
  - install multipath 1

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed multipath.1
Done.
### : The 'set "P' -> 'set P' rewrite masks differences between whether Path
### : already contains a directory which needs escaping (e.g. building with
### : MSVC)
### opam env --shell=cmd | grep "PATH" | 'XXX:.*' -> '' | 'set "P' -> 'set P'
set MANPATH=:${BASEDIR}/OPAM/rewriting/man
set PATH=${BASEDIR}/OPAM/rewriting/bin;C:\Devel\bin1;C:\Devel\bin2;"C:\Devel\bin3;";C:\Devel\bin4;ZZZ:\;
### opam exec -- opam env --shell=cmd --revert | grep 'ZZZ:' | 'ZZZ:\\.*' -> 'ZZZ:\' | 'set "P' -> 'set P' 
### : Test for #5838
### opam env | grep MANPATH
MANPATH=':${BASEDIR}/OPAM/rewriting/man'; export MANPATH;
### opam exec -- opam env --revert | grep MANPATH
MANPATH=''; export MANPATH;
### : Tests forward and backslash rewriting on revert
### : This sequence of updates is what presently happens with the compiler
### <pkg:mixed-updates.1>
opam-version: "2.0"
setenv: [
  [ CAML_LD_LIBRARY_PATH = "C:\\Devel\\Roots\\regression\\default\\lib/stublibs" ]
  [ CAML_LD_LIBRARY_PATH = "C:/Devel/Roots/regression/default/lib/ocaml/stublibs;C:/Devel/Roots/regression/default/lib/ocaml" ]
  [ CAML_LD_LIBRARY_PATH += "C:\\Devel\\Roots\\regression\\default\\lib/stublibs" ]
]
x-env-path-rewrite: [
  [ CAML_LD_LIBRARY_PATH ";" "target" ]
]
### opam install mixed-updates
The following actions will be performed:
=== install 1 package
  - install mixed-updates 1

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed mixed-updates.1
Done.
### opam env | grep "CAML_LD_LIBRARY_PATH"
CAML_LD_LIBRARY_PATH='C:\Devel\Roots\regression\default\lib\stublibs;C:\Devel\Roots\regression\default\lib\ocaml\stublibs;C:\Devel\Roots\regression\default\lib\ocaml'; export CAML_LD_LIBRARY_PATH;
### opam exec -- opam env --revert | grep "CAML_LD_LIBRARY_PATH"
CAML_LD_LIBRARY_PATH=''; export CAML_LD_LIBRARY_PATH;
### :::::::::::::::::::
### : Column & target :
### :::::::::::::::::::
### RCT_ENVSET_ADD=a/path/to
### RCT_ENVSET_ADD_WITH_COL=/a/path/to:"t:/his/is/quoted"
### RCT_ENVBUILD_ADD=a/path/to
### RCT_ENVBUILD_ADD_WITH_COL=/a/path/to:"t:/his/is/quoted"
### <pkg:col-target.1>
opam-version: "2.0"
setenv: [
  [ RCT_ENVSET = "/a/given/path" ]
  [ RCT_ENVSET_STR = "something" ]
  [ RCT_ENVSET_WITH_COL = "s:mething" ]
  [ RCT_ENVSET_ADD += "/a/given/path" ]
  [ RCT_ENVSET_ADD_WITH_COL += "a:/nother/gi;ven/path" ]
]
build-env: [
  [ LC_ALL = "C" ]
  [ RCT_ENVBUILD = "/a/given/path" ]
  [ RCT_ENVBUILD_STR = "something" ]
  [ RCT_ENVBUILD_WITH_COL = "s:mething" ]
  [ RCT_ENVBUILD_ADD += "/a/given/path" ]
  [ RCT_ENVBUILD_ADD_WITH_COL += "a:/nother/gi;ven/path" ]
]
build: [ "sh" "-c" "env | grep RCT_ENV | sort" ]
x-env-path-rewrite: [
  [ RCT_ENVSET ":" "target" ]
  [ RCT_ENVSET_STR ":" "target" ]
  [ RCT_ENVSET_WITH_COL ":" "target" ]
  [ RCT_ENVSET_ADD ":" "target" ]
  [ RCT_ENVSET_ADD_WITH_COL ":" "target" ]

  [ RCT_ENVBUILD ":" "target" ]
  [ RCT_ENVBUILD_STR ":" "target" ]
  [ RCT_ENVBUILD_WITH_COL ":" "target" ]
  [ RCT_ENVBUILD_ADD ":" "target" ]
  [ RCT_ENVBUILD_ADD_WITH_COL ":" "target" ]
]
### opam install col-target -v | sed-cmd sh | unordered
The following actions will be performed:
=== install 1 package
  - install col-target 1

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  2/3: [col-target: sh env | grep RCT_ENV | sort]
+ sh "-c" "env | grep RCT_ENV | sort" (CWD=${BASEDIR}/OPAM/rewriting/.opam-switch/build/col-target.1)
- RCT_ENVBUILD=\a\given\path
- RCT_ENVBUILD_ADD=\a\given\path:a/path/to
- RCT_ENVBUILD_ADD_WITH_COL=a:\nother\gi;ven\path:/a/path/to:"t:/his/is/quoted"
- RCT_ENVBUILD_STR=something
- RCT_ENVBUILD_WITH_COL=s:mething
- RCT_ENVSET_ADD=a/path/to
- RCT_ENVSET_ADD_WITH_COL=/a/path/to:"t:/his/is/quoted"
-> compiled  col-target.1
-> installed col-target.1
Done.
### opam env | sort | grep "RCT_ENV"
RCT_ENVSET='\a\given\path'; export RCT_ENVSET;
RCT_ENVSET_ADD='\a\given\path:a/path/to'; export RCT_ENVSET_ADD;
RCT_ENVSET_ADD_WITH_COL='a:\nother\gi;ven\path:/a/path/to:"t:/his/is/quoted"'; export RCT_ENVSET_ADD_WITH_COL;
RCT_ENVSET_STR='something'; export RCT_ENVSET_STR;
RCT_ENVSET_WITH_COL='s:mething'; export RCT_ENVSET_WITH_COL;
### cat OPAM/rewriting/.opam-switch/environment | grep RCT_ENV
RCT_ENVSET	=	/a/given/path	:	target	Updated\ by\ package\ col-target
RCT_ENVSET_STR	=	something	:	target	Updated\ by\ package\ col-target
RCT_ENVSET_WITH_COL	=	s:mething	:	target	Updated\ by\ package\ col-target
RCT_ENVSET_ADD	+=	/a/given/path	:	target	Updated\ by\ package\ col-target
RCT_ENVSET_ADD_WITH_COL	+=	a:/nother/gi;ven/path	:	target	Updated\ by\ package\ col-target
### ::::::::::::::::::::::::::
### : Column & target-quoted :
### ::::::::::::::::::::::::::
### RCTQ_ENVSET_ADD=a/path/to
### RCTQ_ENVSET_ADD_WITH_COL=/a/path/to:"t:/his/is/quoted"
### RCTQ_ENVBUILD_ADD=a/path/to
### RCTQ_ENVBUILD_ADD_WITH_COL=/a/path/to:"t:/his/is/quoted"
### <pkg:col-target-quoted.1>
opam-version: "2.0"
setenv: [
  [ RCTQ_ENVSET = "/a/given/path" ]
  [ RCTQ_ENVSET_STR = "something" ]
  [ RCTQ_ENVSET_WITH_COL = "s:mething" ]
  [ RCTQ_ENVSET_ADD += "/a/given/path" ]
  [ RCTQ_ENVSET_ADD_WITH_COL += "a:/nother/gi;ven/path" ]
]
build-env: [
  [ LC_ALL = "C" ]
  [ RCTQ_ENVBUILD = "/a/given/path" ]
  [ RCTQ_ENVBUILD_STR = "something" ]
  [ RCTQ_ENVBUILD_WITH_COL = "s:mething" ]
  [ RCTQ_ENVBUILD_ADD += "/a/given/path" ]
  [ RCTQ_ENVBUILD_ADD_WITH_COL += "a:/nother/gi;ven/path" ]
]
build: [ "sh" "-c" "env | grep RCTQ_ENV | sort" ]
x-env-path-rewrite: [
  [ RCTQ_ENVSET ":" "target-quoted" ]
  [ RCTQ_ENVSET_STR ":" "target-quoted" ]
  [ RCTQ_ENVSET_WITH_COL ":" "target-quoted" ]
  [ RCTQ_ENVSET_ADD ":" "target-quoted" ]
  [ RCTQ_ENVSET_ADD_WITH_COL ":" "target-quoted" ]

  [ RCTQ_ENVBUILD ":" "target-quoted" ]
  [ RCTQ_ENVBUILD_STR ":" "target-quoted" ]
  [ RCTQ_ENVBUILD_WITH_COL ":" "target-quoted" ]
  [ RCTQ_ENVBUILD_ADD ":" "target-quoted" ]
  [ RCTQ_ENVBUILD_ADD_WITH_COL ":" "target-quoted" ]
]
### opam install col-target-quoted -v | sed-cmd sh | unordered
The following actions will be performed:
=== install 1 package
  - install col-target-quoted 1

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  2/3: [col-target-quoted: sh env | grep RCTQ_ENV | sort]
+ sh "-c" "env | grep RCTQ_ENV | sort" (CWD=${BASEDIR}/OPAM/rewriting/.opam-switch/build/col-target-quoted.1)
- RCTQ_ENVBUILD=\a\given\path
- RCTQ_ENVBUILD_ADD=\a\given\path:a/path/to
- RCTQ_ENVBUILD_ADD_WITH_COL="a:\nother\gi;ven\path":/a/path/to:"t:/his/is/quoted"
- RCTQ_ENVBUILD_STR=something
- RCTQ_ENVBUILD_WITH_COL="s:mething"
- RCTQ_ENVSET_ADD=a/path/to
- RCTQ_ENVSET_ADD_WITH_COL=/a/path/to:"t:/his/is/quoted"
-> compiled  col-target-quoted.1
-> installed col-target-quoted.1
Done.
### opam env | sort | grep "RCTQ_ENV"
RCTQ_ENVSET='\a\given\path'; export RCTQ_ENVSET;
RCTQ_ENVSET_ADD='\a\given\path:a/path/to'; export RCTQ_ENVSET_ADD;
RCTQ_ENVSET_ADD_WITH_COL='"a:\nother\gi;ven\path":/a/path/to:"t:/his/is/quoted"'; export RCTQ_ENVSET_ADD_WITH_COL;
RCTQ_ENVSET_STR='something'; export RCTQ_ENVSET_STR;
RCTQ_ENVSET_WITH_COL='"s:mething"'; export RCTQ_ENVSET_WITH_COL;
### cat OPAM/rewriting/.opam-switch/environment | grep RCTQ_ENV
RCTQ_ENVSET	=	/a/given/path	:	target-quoted	Updated\ by\ package\ col-target-quoted
RCTQ_ENVSET_STR	=	something	:	target-quoted	Updated\ by\ package\ col-target-quoted
RCTQ_ENVSET_WITH_COL	=	s:mething	:	target-quoted	Updated\ by\ package\ col-target-quoted
RCTQ_ENVSET_ADD	+=	/a/given/path	:	target-quoted	Updated\ by\ package\ col-target-quoted
RCTQ_ENVSET_ADD_WITH_COL	+=	a:/nother/gi;ven/path	:	target-quoted	Updated\ by\ package\ col-target-quoted
### :::::::::::::::::
### : Column & host :
### :::::::::::::::::
### RCH_ENVSET_ADD=a/path/to
### RCH_ENVSET_ADD_WITH_COL=/a/path/to:"t:/his/is/quoted"
### RCH_ENVBUILD_ADD=a/path/to
### RCH_ENVBUILD_ADD_WITH_COL=/a/path/to:"t:/his/is/quoted"
### <pkg:col-host.1>
opam-version: "2.0"
setenv: [
  [ RCH_ENVSET = "/a/given/path" ]
  [ RCH_ENVSET_STR = "something" ]
  [ RCH_ENVSET_WITH_COL = "s:mething" ]
  [ RCH_ENVSET_ADD += "/a/given/path" ]
  [ RCH_ENVSET_ADD_WITH_COL += "a:/nother/gi;ven/path" ]
]
build-env: [
  [ LC_ALL = "C" ]
  [ RCH_ENVBUILD = "/a/given/path" ]
  [ RCH_ENVBUILD_STR = "something" ]
  [ RCH_ENVBUILD_WITH_COL = "s:mething" ]
  [ RCH_ENVBUILD_ADD += "/a/given/path" ]
  [ RCH_ENVBUILD_ADD_WITH_COL += "a:/nother/gi;ven/path" ]
]
build: [ "sh" "-c" "env | grep RCH_ENV | sort" ]
x-env-path-rewrite: [
  [ RCH_ENVSET ":" "host" ]
  [ RCH_ENVSET_STR ":" "host" ]
  [ RCH_ENVSET_WITH_COL ":" "host" ]
  [ RCH_ENVSET_ADD ":" "host" ]
  [ RCH_ENVSET_ADD_WITH_COL ":" "host" ]

  [ RCH_ENVBUILD ":" "host" ]
  [ RCH_ENVBUILD_STR ":" "host" ]
  [ RCH_ENVBUILD_WITH_COL ":" "host" ]
  [ RCH_ENVBUILD_ADD ":" "host" ]
  [ RCH_ENVBUILD_ADD_WITH_COL ":" "host" ]
]
### opam install col-host -v | sed-cmd sh | unordered
The following actions will be performed:
=== install 1 package
  - install col-host 1

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  2/3: [col-host: sh env | grep RCH_ENV | sort]
+ sh "-c" "env | grep RCH_ENV | sort" (CWD=${BASEDIR}/OPAM/rewriting/.opam-switch/build/col-host.1)
- RCH_ENVBUILD=/a/given/path
- RCH_ENVBUILD_ADD=/a/given/path:a/path/to
- RCH_ENVBUILD_ADD_WITH_COL=/cygdrive/a/nother/gi;ven/path:/a/path/to:"t:/his/is/quoted"
- RCH_ENVBUILD_STR=something
- RCH_ENVBUILD_WITH_COL=s:mething
- RCH_ENVSET_ADD=a/path/to
- RCH_ENVSET_ADD_WITH_COL=/a/path/to:"t:/his/is/quoted"
-> compiled  col-host.1
-> installed col-host.1
Done.
### opam env | sort | grep "RCH_ENV"
RCH_ENVSET='/a/given/path'; export RCH_ENVSET;
RCH_ENVSET_ADD='/a/given/path:a/path/to'; export RCH_ENVSET_ADD;
RCH_ENVSET_ADD_WITH_COL='/cygdrive/a/nother/gi;ven/path:/a/path/to:"t:/his/is/quoted"'; export RCH_ENVSET_ADD_WITH_COL;
RCH_ENVSET_STR='something'; export RCH_ENVSET_STR;
RCH_ENVSET_WITH_COL='s:mething'; export RCH_ENVSET_WITH_COL;
### cat OPAM/rewriting/.opam-switch/environment | grep RCH_ENV
RCH_ENVSET	=	/a/given/path	:	host	Updated\ by\ package\ col-host
RCH_ENVSET_STR	=	something	:	host	Updated\ by\ package\ col-host
RCH_ENVSET_WITH_COL	=	s:mething	:	host	Updated\ by\ package\ col-host
RCH_ENVSET_ADD	+=	/a/given/path	:	host	Updated\ by\ package\ col-host
RCH_ENVSET_ADD_WITH_COL	+=	a:/nother/gi;ven/path	:	host	Updated\ by\ package\ col-host
### ::::::::::::::::::::::::
### : Column & host-quoted :
### ::::::::::::::::::::::::
### RCHQ_ENVSET_ADD=a/path/to
### RCHQ_ENVSET_ADD_WITH_COL=/a/path/to:"t:/his/is/quoted"
### RCHQ_ENVBUILD_ADD=a/path/to
### RCHQ_ENVBUILD_ADD_WITH_COL=/a/path/to:"t:/his/is/quoted"
### <pkg:col-host-quoted.1>
opam-version: "2.0"
setenv: [
  [ RCHQ_ENVSET = "/a/given/path" ]
  [ RCHQ_ENVSET_STR = "something" ]
  [ RCHQ_ENVSET_WITH_COL = "s:mething" ]
  [ RCHQ_ENVSET_ADD += "/a/given/path" ]
  [ RCHQ_ENVSET_ADD_WITH_COL += "a:/nother/gi;ven/path" ]
]
build-env: [
  [ LC_ALL = "C" ]
  [ RCHQ_ENVBUILD = "/a/given/path" ]
  [ RCHQ_ENVBUILD_STR = "something" ]
  [ RCHQ_ENVBUILD_WITH_COL = "s:mething" ]
  [ RCHQ_ENVBUILD_ADD += "/a/given/path" ]
  [ RCHQ_ENVBUILD_ADD_WITH_COL += "a:/nother/gi;ven/path" ]
]
build: [ "sh" "-c" "env | grep RCHQ_ENV | sort" ]
x-env-path-rewrite: [
  [ RCHQ_ENVSET ":" "host-quoted" ]
  [ RCHQ_ENVSET_STR ":" "host-quoted" ]
  [ RCHQ_ENVSET_WITH_COL ":" "host-quoted" ]
  [ RCHQ_ENVSET_ADD ":" "host-quoted" ]
  [ RCHQ_ENVSET_ADD_WITH_COL ":" "host-quoted" ]

  [ RCHQ_ENVBUILD ":" "host-quoted" ]
  [ RCHQ_ENVBUILD_STR ":" "host-quoted" ]
  [ RCHQ_ENVBUILD_WITH_COL ":" "host-quoted" ]
  [ RCHQ_ENVBUILD_ADD ":" "host-quoted" ]
  [ RCHQ_ENVBUILD_ADD_WITH_COL ":" "host-quoted" ]
]
### opam install col-host-quoted -v | sed-cmd sh | unordered
The following actions will be performed:
=== install 1 package
  - install col-host-quoted 1

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  2/3: [col-host-quoted: sh env | grep RCHQ_ENV | sort]
+ sh "-c" "env | grep RCHQ_ENV | sort" (CWD=${BASEDIR}/OPAM/rewriting/.opam-switch/build/col-host-quoted.1)
- RCHQ_ENVBUILD=/a/given/path
- RCHQ_ENVBUILD_ADD=/a/given/path:a/path/to
- RCHQ_ENVBUILD_ADD_WITH_COL=/cygdrive/a/nother/gi;ven/path:/a/path/to:"t:/his/is/quoted"
- RCHQ_ENVBUILD_STR=something
- RCHQ_ENVBUILD_WITH_COL="s:mething"
- RCHQ_ENVSET_ADD=a/path/to
- RCHQ_ENVSET_ADD_WITH_COL=/a/path/to:"t:/his/is/quoted"
-> compiled  col-host-quoted.1
-> installed col-host-quoted.1
Done.
### opam env | sort | grep "RCHQ_ENV"
RCHQ_ENVSET='/a/given/path'; export RCHQ_ENVSET;
RCHQ_ENVSET_ADD='/a/given/path:a/path/to'; export RCHQ_ENVSET_ADD;
RCHQ_ENVSET_ADD_WITH_COL='/cygdrive/a/nother/gi;ven/path:/a/path/to:"t:/his/is/quoted"'; export RCHQ_ENVSET_ADD_WITH_COL;
RCHQ_ENVSET_STR='something'; export RCHQ_ENVSET_STR;
RCHQ_ENVSET_WITH_COL='"s:mething"'; export RCHQ_ENVSET_WITH_COL;
### cat OPAM/rewriting/.opam-switch/environment | grep RCHQ_ENV
RCHQ_ENVSET	=	/a/given/path	:	host-quoted	Updated\ by\ package\ col-host-quoted
RCHQ_ENVSET_STR	=	something	:	host-quoted	Updated\ by\ package\ col-host-quoted
RCHQ_ENVSET_WITH_COL	=	s:mething	:	host-quoted	Updated\ by\ package\ col-host-quoted
RCHQ_ENVSET_ADD	+=	/a/given/path	:	host-quoted	Updated\ by\ package\ col-host-quoted
RCHQ_ENVSET_ADD_WITH_COL	+=	a:/nother/gi;ven/path	:	host-quoted	Updated\ by\ package\ col-host-quoted
### :::::::::::::::::::::::
### : SemiColumn & target :
### :::::::::::::::::::::::
### RST_ENVSET_ADD=a/path/to
### RST_ENVSET_ADD_WITH_COL=/a/path/to;"t:/his/is/quoted"
### RST_ENVBUILD_ADD=a/path/to
### RST_ENVBUILD_ADD_WITH_COL=/a/path/to;"t:/his/is/quoted"
### <pkg:semicol-target.1>
opam-version: "2.0"
setenv: [
  [ RST_ENVSET = "/a/given/path" ]
  [ RST_ENVSET_STR = "something" ]
  [ RST_ENVSET_WITH_COL = "s:mething" ]
  [ RST_ENVSET_ADD += "/a/given/path" ]
  [ RST_ENVSET_ADD_WITH_COL += "a:/nother/gi;ven/path" ]
]
build-env: [
  [ LC_ALL = "C" ]
  [ RST_ENVBUILD = "/a/given/path" ]
  [ RST_ENVBUILD_STR = "something" ]
  [ RST_ENVBUILD_WITH_COL = "s:mething" ]
  [ RST_ENVBUILD_ADD += "/a/given/path" ]
  [ RST_ENVBUILD_ADD_WITH_COL += "a:/nother/gi;ven/path" ]
]
build: [ "sh" "-c" "env | grep RST_ENV | sort" ]
x-env-path-rewrite: [
  [ RST_ENVSET ";" "target" ]
  [ RST_ENVSET_STR ";" "target" ]
  [ RST_ENVSET_WITH_COL ";" "target" ]
  [ RST_ENVSET_ADD ";" "target" ]
  [ RST_ENVSET_ADD_WITH_COL ";" "target" ]

  [ RST_ENVBUILD ";" "target" ]
  [ RST_ENVBUILD_STR ";" "target" ]
  [ RST_ENVBUILD_WITH_COL ";" "target" ]
  [ RST_ENVBUILD_ADD ";" "target" ]
  [ RST_ENVBUILD_ADD_WITH_COL ";" "target" ]
]
### opam install semicol-target -v | sed-cmd sh | unordered
The following actions will be performed:
=== install 1 package
  - install semicol-target 1

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  2/3: [semicol-target: sh env | grep RST_ENV | sort]
+ sh "-c" "env | grep RST_ENV | sort" (CWD=${BASEDIR}/OPAM/rewriting/.opam-switch/build/semicol-target.1)
- RST_ENVBUILD=\a\given\path
- RST_ENVBUILD_ADD=\a\given\path;a/path/to
- RST_ENVBUILD_ADD_WITH_COL=a:\nother\gi;ven\path;/a/path/to;"t:/his/is/quoted"
- RST_ENVBUILD_STR=something
- RST_ENVBUILD_WITH_COL=s:mething
- RST_ENVSET_ADD=a/path/to
- RST_ENVSET_ADD_WITH_COL=/a/path/to;"t:/his/is/quoted"
-> compiled  semicol-target.1
-> installed semicol-target.1
Done.
### opam env | sort | grep "RST_ENV"
RST_ENVSET='\a\given\path'; export RST_ENVSET;
RST_ENVSET_ADD='\a\given\path;a/path/to'; export RST_ENVSET_ADD;
RST_ENVSET_ADD_WITH_COL='a:\nother\gi;ven\path;/a/path/to;"t:/his/is/quoted"'; export RST_ENVSET_ADD_WITH_COL;
RST_ENVSET_STR='something'; export RST_ENVSET_STR;
RST_ENVSET_WITH_COL='s:mething'; export RST_ENVSET_WITH_COL;
### cat OPAM/rewriting/.opam-switch/environment | grep RST_ENV
RST_ENVSET	=	/a/given/path	;	target	Updated\ by\ package\ semicol-target
RST_ENVSET_STR	=	something	;	target	Updated\ by\ package\ semicol-target
RST_ENVSET_WITH_COL	=	s:mething	;	target	Updated\ by\ package\ semicol-target
RST_ENVSET_ADD	+=	/a/given/path	;	target	Updated\ by\ package\ semicol-target
RST_ENVSET_ADD_WITH_COL	+=	a:/nother/gi;ven/path	;	target	Updated\ by\ package\ semicol-target
### ::::::::::::::::::::::::::::::
### : SemiColumn & target-quoted :
### ::::::::::::::::::::::::::::::
### RSTQ_ENVSET_ADD=a/path/to
### RSTQ_ENVSET_ADD_WITH_COL=/a/path/to;"t:/his/is/quoted"
### RSTQ_ENVBUILD_ADD=a/path/to
### RSTQ_ENVBUILD_ADD_WITH_COL=/a/path/to;"t:/his/is/quoted"
### <pkg:semicol-target-quoted.1>
opam-version: "2.0"
setenv: [
  [ RSTQ_ENVSET = "/a/given/path" ]
  [ RSTQ_ENVSET_STR = "something" ]
  [ RSTQ_ENVSET_WITH_COL = "s:mething" ]
  [ RSTQ_ENVSET_ADD += "/a/given/path" ]
  [ RSTQ_ENVSET_ADD_WITH_COL += "a:/nother/gi;ven/path" ]
]
build-env: [
  [ LC_ALL = "C" ]
  [ RSTQ_ENVBUILD = "/a/given/path" ]
  [ RSTQ_ENVBUILD_STR = "something" ]
  [ RSTQ_ENVBUILD_WITH_COL = "s:mething" ]
  [ RSTQ_ENVBUILD_ADD += "/a/given/path" ]
  [ RSTQ_ENVBUILD_ADD_WITH_COL += "a:/nother/gi;ven/path" ]
]
build: [ "sh" "-c" "env | grep RSTQ_ENV | sort" ]
x-env-path-rewrite: [
  [ RSTQ_ENVSET ";" "target-quoted" ]
  [ RSTQ_ENVSET_STR ";" "target-quoted" ]
  [ RSTQ_ENVSET_WITH_COL ";" "target-quoted" ]
  [ RSTQ_ENVSET_ADD ";" "target-quoted" ]
  [ RSTQ_ENVSET_ADD_WITH_COL ";" "target-quoted" ]

  [ RSTQ_ENVBUILD ";" "target-quoted" ]
  [ RSTQ_ENVBUILD_STR ";" "target-quoted" ]
  [ RSTQ_ENVBUILD_WITH_COL ";" "target-quoted" ]
  [ RSTQ_ENVBUILD_ADD ";" "target-quoted" ]
  [ RSTQ_ENVBUILD_ADD_WITH_COL ";" "target-quoted" ]
]
### opam install semicol-target-quoted -v | sed-cmd sh | unordered
The following actions will be performed:
=== install 1 package
  - install semicol-target-quoted 1

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  2/3: [semicol-target-quoted: sh env | grep RSTQ_ENV | sort]
+ sh "-c" "env | grep RSTQ_ENV | sort" (CWD=${BASEDIR}/OPAM/rewriting/.opam-switch/build/semicol-target-quoted.1)
- RSTQ_ENVBUILD=\a\given\path
- RSTQ_ENVBUILD_ADD=\a\given\path;a/path/to
- RSTQ_ENVBUILD_ADD_WITH_COL="a:\nother\gi;ven\path";/a/path/to;"t:/his/is/quoted"
- RSTQ_ENVBUILD_STR=something
- RSTQ_ENVBUILD_WITH_COL=s:mething
- RSTQ_ENVSET_ADD=a/path/to
- RSTQ_ENVSET_ADD_WITH_COL=/a/path/to;"t:/his/is/quoted"
-> compiled  semicol-target-quoted.1
-> installed semicol-target-quoted.1
Done.
### opam env | sort | grep "RSTQ_ENV"
RSTQ_ENVSET='\a\given\path'; export RSTQ_ENVSET;
RSTQ_ENVSET_ADD='\a\given\path;a/path/to'; export RSTQ_ENVSET_ADD;
RSTQ_ENVSET_ADD_WITH_COL='"a:\nother\gi;ven\path";/a/path/to;"t:/his/is/quoted"'; export RSTQ_ENVSET_ADD_WITH_COL;
RSTQ_ENVSET_STR='something'; export RSTQ_ENVSET_STR;
RSTQ_ENVSET_WITH_COL='s:mething'; export RSTQ_ENVSET_WITH_COL;
### cat OPAM/rewriting/.opam-switch/environment | grep RSTQ_ENV
RSTQ_ENVSET	=	/a/given/path	;	target-quoted	Updated\ by\ package\ semicol-target-quoted
RSTQ_ENVSET_STR	=	something	;	target-quoted	Updated\ by\ package\ semicol-target-quoted
RSTQ_ENVSET_WITH_COL	=	s:mething	;	target-quoted	Updated\ by\ package\ semicol-target-quoted
RSTQ_ENVSET_ADD	+=	/a/given/path	;	target-quoted	Updated\ by\ package\ semicol-target-quoted
RSTQ_ENVSET_ADD_WITH_COL	+=	a:/nother/gi;ven/path	;	target-quoted	Updated\ by\ package\ semicol-target-quoted
### :::::::::::::::::::::
### : SemiColumn & host :
### :::::::::::::::::::::
### RSH_ENVSET_ADD=a/path/to
### RSH_ENVSET_ADD_WITH_COL=/a/path/to;"t:/his/is/quoted"
### RSH_ENVBUILD_ADD=a/path/to
### RSH_ENVBUILD_ADD_WITH_COL=/a/path/to;"t:/his/is/quoted"
### <pkg:semicol-host.1>
opam-version: "2.0"
setenv: [
  [ RSH_ENVSET = "/a/given/path" ]
  [ RSH_ENVSET_STR = "something" ]
  [ RSH_ENVSET_WITH_COL = "s:mething" ]
  [ RSH_ENVSET_ADD += "/a/given/path" ]
  [ RSH_ENVSET_ADD_WITH_COL += "a:/nother/gi;ven/path" ]
]
build-env: [
  [ LC_ALL = "C" ]
  [ RSH_ENVBUILD = "/a/given/path" ]
  [ RSH_ENVBUILD_STR = "something" ]
  [ RSH_ENVBUILD_WITH_COL = "s:mething" ]
  [ RSH_ENVBUILD_ADD += "/a/given/path" ]
  [ RSH_ENVBUILD_ADD_WITH_COL += "a:/nother/gi;ven/path" ]
]
build: [ "sh" "-c" "env | grep RSH_ENV | sort" ]
x-env-path-rewrite: [
  [ RSH_ENVSET ";" "host" ]
  [ RSH_ENVSET_STR ";" "host" ]
  [ RSH_ENVSET_WITH_COL ";" "host" ]
  [ RSH_ENVSET_ADD ";" "host" ]
  [ RSH_ENVSET_ADD_WITH_COL ";" "host" ]

  [ RSH_ENVBUILD ";" "host" ]
  [ RSH_ENVBUILD_STR ";" "host" ]
  [ RSH_ENVBUILD_WITH_COL ";" "host" ]
  [ RSH_ENVBUILD_ADD ";" "host" ]
  [ RSH_ENVBUILD_ADD_WITH_COL ";" "host" ]
]
### opam install semicol-host -v | sed-cmd sh | unordered
The following actions will be performed:
=== install 1 package
  - install semicol-host 1

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  2/3: [semicol-host: sh env | grep RSH_ENV | sort]
+ sh "-c" "env | grep RSH_ENV | sort" (CWD=${BASEDIR}/OPAM/rewriting/.opam-switch/build/semicol-host.1)
- RSH_ENVBUILD=/a/given/path
- RSH_ENVBUILD_ADD=/a/given/path;a/path/to
- RSH_ENVBUILD_ADD_WITH_COL=/cygdrive/a/nother/gi;ven/path;/a/path/to;"t:/his/is/quoted"
- RSH_ENVBUILD_STR=something
- RSH_ENVBUILD_WITH_COL=s:mething
- RSH_ENVSET_ADD=a/path/to
- RSH_ENVSET_ADD_WITH_COL=/a/path/to;"t:/his/is/quoted"
-> compiled  semicol-host.1
-> installed semicol-host.1
Done.
### opam env | sort | grep "RSH_ENV"
RSH_ENVSET='/a/given/path'; export RSH_ENVSET;
RSH_ENVSET_ADD='/a/given/path;a/path/to'; export RSH_ENVSET_ADD;
RSH_ENVSET_ADD_WITH_COL='/cygdrive/a/nother/gi;ven/path;/a/path/to;"t:/his/is/quoted"'; export RSH_ENVSET_ADD_WITH_COL;
RSH_ENVSET_STR='something'; export RSH_ENVSET_STR;
RSH_ENVSET_WITH_COL='s:mething'; export RSH_ENVSET_WITH_COL;
### cat OPAM/rewriting/.opam-switch/environment | grep RSH_ENV
RSH_ENVSET	=	/a/given/path	;	host	Updated\ by\ package\ semicol-host
RSH_ENVSET_STR	=	something	;	host	Updated\ by\ package\ semicol-host
RSH_ENVSET_WITH_COL	=	s:mething	;	host	Updated\ by\ package\ semicol-host
RSH_ENVSET_ADD	+=	/a/given/path	;	host	Updated\ by\ package\ semicol-host
RSH_ENVSET_ADD_WITH_COL	+=	a:/nother/gi;ven/path	;	host	Updated\ by\ package\ semicol-host
### ::::::::::::::::::::::::::::
### : SemiColumn & host-quoted :
### ::::::::::::::::::::::::::::
### RSHQ_ENVSET_ADD=a/path/to
### RSHQ_ENVSET_ADD_WITH_COL=/a/path/to;"t:/his/is/quoted"
### RSHQ_ENVBUILD_ADD=a/path/to
### RSHQ_ENVBUILD_ADD_WITH_COL=/a/path/to;"t:/his/is/quoted"
### <pkg:semicol-host-quoted.1>
opam-version: "2.0"
setenv: [
  [ RSHQ_ENVSET = "/a/given/path" ]
  [ RSHQ_ENVSET_STR = "something" ]
  [ RSHQ_ENVSET_WITH_COL = "s:mething" ]
  [ RSHQ_ENVSET_ADD += "/a/given/path" ]
  [ RSHQ_ENVSET_ADD_WITH_COL += "a:/nother/gi;ven/path" ]
]
build-env: [
  [ LC_ALL = "C" ]
  [ RSHQ_ENVBUILD = "/a/given/path" ]
  [ RSHQ_ENVBUILD_STR = "something" ]
  [ RSHQ_ENVBUILD_WITH_COL = "s:mething" ]
  [ RSHQ_ENVBUILD_ADD += "/a/given/path" ]
  [ RSHQ_ENVBUILD_ADD_WITH_COL += "a:/nother/gi;ven/path" ]
]
build: [ "sh" "-c" "env | grep RSHQ_ENV | sort" ]
x-env-path-rewrite: [
  [ RSHQ_ENVSET ";" "host-quoted" ]
  [ RSHQ_ENVSET_STR ";" "host-quoted" ]
  [ RSHQ_ENVSET_WITH_COL ";" "host-quoted" ]
  [ RSHQ_ENVSET_ADD ";" "host-quoted" ]
  [ RSHQ_ENVSET_ADD_WITH_COL ";" "host-quoted" ]

  [ RSHQ_ENVBUILD ";" "host-quoted" ]
  [ RSHQ_ENVBUILD_STR ";" "host-quoted" ]
  [ RSHQ_ENVBUILD_WITH_COL ";" "host-quoted" ]
  [ RSHQ_ENVBUILD_ADD ";" "host-quoted" ]
  [ RSHQ_ENVBUILD_ADD_WITH_COL ";" "host-quoted" ]
]
### opam install semicol-host-quoted -v | sed-cmd sh | unordered
The following actions will be performed:
=== install 1 package
  - install semicol-host-quoted 1

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  2/3: [semicol-host-quoted: sh env | grep RSHQ_ENV | sort]
+ sh "-c" "env | grep RSHQ_ENV | sort" (CWD=${BASEDIR}/OPAM/rewriting/.opam-switch/build/semicol-host-quoted.1)
- RSHQ_ENVBUILD=/a/given/path
- RSHQ_ENVBUILD_ADD=/a/given/path;a/path/to
- RSHQ_ENVBUILD_ADD_WITH_COL="/cygdrive/a/nother/gi;ven/path";/a/path/to;"t:/his/is/quoted"
- RSHQ_ENVBUILD_STR=something
- RSHQ_ENVBUILD_WITH_COL=s:mething
- RSHQ_ENVSET_ADD=a/path/to
- RSHQ_ENVSET_ADD_WITH_COL=/a/path/to;"t:/his/is/quoted"
-> compiled  semicol-host-quoted.1
-> installed semicol-host-quoted.1
Done.
### opam env | sort | grep "RSHQ_ENV"
RSHQ_ENVSET='/a/given/path'; export RSHQ_ENVSET;
RSHQ_ENVSET_ADD='/a/given/path;a/path/to'; export RSHQ_ENVSET_ADD;
RSHQ_ENVSET_ADD_WITH_COL='"/cygdrive/a/nother/gi;ven/path";/a/path/to;"t:/his/is/quoted"'; export RSHQ_ENVSET_ADD_WITH_COL;
RSHQ_ENVSET_STR='something'; export RSHQ_ENVSET_STR;
RSHQ_ENVSET_WITH_COL='s:mething'; export RSHQ_ENVSET_WITH_COL;
### cat OPAM/rewriting/.opam-switch/environment | grep RSHQ_ENV
RSHQ_ENVSET	=	/a/given/path	;	host-quoted	Updated\ by\ package\ semicol-host-quoted
RSHQ_ENVSET_STR	=	something	;	host-quoted	Updated\ by\ package\ semicol-host-quoted
RSHQ_ENVSET_WITH_COL	=	s:mething	;	host-quoted	Updated\ by\ package\ semicol-host-quoted
RSHQ_ENVSET_ADD	+=	/a/given/path	;	host-quoted	Updated\ by\ package\ semicol-host-quoted
RSHQ_ENVSET_ADD_WITH_COL	+=	a:/nother/gi;ven/path	;	host-quoted	Updated\ by\ package\ semicol-host-quoted
### :::::::::
### : False :
### :::::::::
### RF_ENVSET_ADD=a/path/to
### RF_ENVSET_ADD_WITH_COL=/a/path/to:"t:/his/is/quoted"
### RF_ENVBUILD_ADD=a/path/to
### RF_ENVBUILD_ADD_WITH_COL=/a/path/to:"t:/his/is/quoted"
### <pkg:false.1>
opam-version: "2.0"
setenv: [
  [ RF_ENVSET = "/a/given/path" ]
  [ RF_ENVSET_STR = "something" ]
  [ RF_ENVSET_WITH_COL = "s:mething" ]
  [ RF_ENVSET_ADD += "/a/given/path" ]
  [ RF_ENVSET_ADD_WITH_COL += "a:/nother/gi;ven/path" ]
]
build-env: [
  [ LC_ALL = "C" ]
  [ RF_ENVBUILD = "/a/given/path" ]
  [ RF_ENVBUILD_STR = "something" ]
  [ RF_ENVBUILD_WITH_COL = "s:mething" ]
  [ RF_ENVBUILD_ADD += "/a/given/path" ]
  [ RF_ENVBUILD_ADD_WITH_COL += "a:/nother/gi;ven/path" ]
]
build: [ "sh" "-c" "env | grep RF_ENV | sort" ]
x-env-path-rewrite: [
  [ RF_ENVSET false ]
  [ RF_ENVSET_STR false ]
  [ RF_ENVSET_WITH_COL false ]
  [ RF_ENVSET_ADD false ]
  [ RF_ENVSET_ADD_WITH_COL false ]
  [ PATH false ]

  [ RF_ENVBUILD false ]
  [ RF_ENVBUILD_STR false ]
  [ RF_ENVBUILD_WITH_COL false ]
  [ RF_ENVBUILD_ADD false ]
  [ RF_ENVBUILD_ADD_WITH_COL false ]
]
### opam install false -v | sed-cmd sh | unordered
The following actions will be performed:
=== install 1 package
  - install false 1

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  2/3: [false: sh env | grep RF_ENV | sort]
+ sh "-c" "env | grep RF_ENV | sort" (CWD=${BASEDIR}/OPAM/rewriting/.opam-switch/build/false.1)
- RF_ENVBUILD=/a/given/path
- RF_ENVBUILD_ADD=/a/given/path;a/path/to
- RF_ENVBUILD_ADD_WITH_COL=a:/nother/gi;ven/path;/a/path/to:"t:/his/is/quoted"
- RF_ENVBUILD_STR=something
- RF_ENVBUILD_WITH_COL=s:mething
- RF_ENVSET_ADD=a/path/to
- RF_ENVSET_ADD_WITH_COL=/a/path/to:"t:/his/is/quoted"
-> compiled  false.1
-> installed false.1
Done.
### opam env | sort | grep "RF_ENV"
RF_ENVSET='/a/given/path'; export RF_ENVSET;
RF_ENVSET_ADD='/a/given/path;a/path/to'; export RF_ENVSET_ADD;
RF_ENVSET_ADD_WITH_COL='a:/nother/gi;ven/path;/a/path/to:"t:/his/is/quoted"'; export RF_ENVSET_ADD_WITH_COL;
RF_ENVSET_STR='something'; export RF_ENVSET_STR;
RF_ENVSET_WITH_COL='s:mething'; export RF_ENVSET_WITH_COL;
### cat OPAM/rewriting/.opam-switch/environment | grep RF_ENV
RF_ENVSET	=	/a/given/path	norewrite	Updated\ by\ package\ false
RF_ENVSET_STR	=	something	norewrite	Updated\ by\ package\ false
RF_ENVSET_WITH_COL	=	s:mething	norewrite	Updated\ by\ package\ false
RF_ENVSET_ADD	+=	/a/given/path	norewrite	Updated\ by\ package\ false
RF_ENVSET_ADD_WITH_COL	+=	a:/nother/gi;ven/path	norewrite	Updated\ by\ package\ false
### ::::::::::::
### : Complete :
### ::::::::::::
### RO_ENVSET_COL_TARGET=a/path/to
### RO_ENVSET_COL_TARGET_QUOTED=a/path/to:"this/i:s/quoted"
### RO_ENVBUILD_COL_TARGET=a/path/to
### RO_ENVBUILD_COL_TARGET_QUOTED=a/path/to:"this/i:s/quoted"
### <pkg:rewrite.1>
opam-version: "2.0"
setenv: [
  [ RO_ENVSET = "/a/given/path" ]
  [ RO_ENVSET_STR = "something" ]
  [ RO_ENVSET_STR_WS = "something/else" ]
  [ RO_ENVSET_STR_WS2 = "something/else" ]
  [ RO_ENVSET_COL = "s:mething" ]
  [ RO_ENVSET_COL_TARGET += "a:/nother/gi;ven/path" ]
  [ RO_ENVSET_COL_TARGET_QUOTED += "a:/nother/gi;ven/path" ]
]
build-env: [
  [ LC_ALL = "C" ]
  [ RO_ENVBUILD = "/another/given/path" ]
  [ RO_ENVBUILD_STR = "something" ]
  [ RO_ENVBUILD_COL = "s:mething" ]
  [ RO_ENVBUILD_COL_TARGET += "a:/nother/gi;ven/path" ]
  [ RO_ENVBUILD_COL_TARGET_QUOTED += "a:/nother/gi;ven/path" ]
]
build: [ "sh" "-c" "env | grep RO_ENV | sort" ]
x-env-path-rewrite: [
  [ RO_ENVSET ":" "target" ]
  [ RO_ENVSET_STR_WS false ]
  [ RO_ENVSET_STR_WS2 true ]
  [ RO_ENVSET_COL ":" "target-quoted" ]
  [ RO_ENVSET_COL_TARGET ";" "host" ]
  [ RO_ENVSET_COL_TARGET_QUOTED ":" "host-quoted" ]

  [ RO_ENVBUILD ":" "target" ]
  [ RO_ENVBUILD_STR_WS false ]
  [ RO_ENVBUILD_COL ":" "target" ]
  [ RO_ENVBUILD_COL_TARGET ";" "host" ]
  [ RO_ENVBUILD_COL_TARGET_QUOTED ":" "host-quoted" ]
]
### cat OPAM/rewriting/.opam-switch/environment | grep RO_ENV
### opam install rewrite -v | sed-cmd sh | unordered
The following actions will be performed:
=== install 1 package
  - install rewrite 1

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  2/3: [rewrite: sh env | grep RO_ENV | sort]
+ sh "-c" "env | grep RO_ENV | sort" (CWD=${BASEDIR}/OPAM/rewriting/.opam-switch/build/rewrite.1)
- RO_ENVBUILD=\another\given\path
- RO_ENVBUILD_COL=s:mething
- RO_ENVBUILD_COL_TARGET=/cygdrive/a/nother/gi;ven/path;a/path/to
- RO_ENVBUILD_COL_TARGET_QUOTED=/cygdrive/a/nother/gi;ven/path:a/path/to:"this/i:s/quoted"
- RO_ENVBUILD_STR=something
- RO_ENVSET_COL_TARGET=a/path/to
- RO_ENVSET_COL_TARGET_QUOTED=a/path/to:"this/i:s/quoted"
-> compiled  rewrite.1
-> installed rewrite.1
Done.
### opam env | sort | grep "RO_ENV"
RO_ENVSET='\a\given\path'; export RO_ENVSET;
RO_ENVSET_COL='"s:mething"'; export RO_ENVSET_COL;
RO_ENVSET_COL_TARGET='/cygdrive/a/nother/gi;ven/path;a/path/to'; export RO_ENVSET_COL_TARGET;
RO_ENVSET_COL_TARGET_QUOTED='/cygdrive/a/nother/gi;ven/path:a/path/to:"this/i:s/quoted"'; export RO_ENVSET_COL_TARGET_QUOTED;
RO_ENVSET_STR='something'; export RO_ENVSET_STR;
RO_ENVSET_STR_WS2='something/else'; export RO_ENVSET_STR_WS2;
RO_ENVSET_STR_WS='something/else'; export RO_ENVSET_STR_WS;
### cat OPAM/rewriting/.opam-switch/environment | grep RO_ENV
RO_ENVSET	=	/a/given/path	:	target	Updated\ by\ package\ rewrite
RO_ENVSET_STR	=	something	Updated\ by\ package\ rewrite
RO_ENVSET_STR_WS	=	something/else	norewrite	Updated\ by\ package\ rewrite
RO_ENVSET_STR_WS2	=	something/else	Updated\ by\ package\ rewrite
RO_ENVSET_COL	=	s:mething	:	target-quoted	Updated\ by\ package\ rewrite
RO_ENVSET_COL_TARGET	+=	a:/nother/gi;ven/path	;	host	Updated\ by\ package\ rewrite
RO_ENVSET_COL_TARGET_QUOTED	+=	a:/nother/gi;ven/path	:	host-quoted	Updated\ by\ package\ rewrite
### ::::::::::::::::
### : All formulae :
### ::::::::::::::::
### <pkg:all-formulae.1>
opam-version: "2.0"
setenv: [
  [ RAF_ENVSET_TRUE  = "/is/true" ]
  [ RAF_ENVSET_FALSE = "/is/false" ]
  [ RAF_ENVSET_ATOM  = "/is/atom" ]
  [ RAF_ENVSET_UNRES = "/is/unresolved" ]
  [ RAF_ENVSET_RES   = "/is/resolved" ]
  [ RAF_ENVSET_DBL   += "fir/st" ]
  [ RAF_ENVSET_DBL   += "sec/ond" ]
]
build: [ "sh" "-c" "env | grep RAF_ENV | sort" ]
build-env: [
  [ LC_ALL = "C" ]
  [ RAF_ENVBUILD_TRUE  = "/is/true" ]
  [ RAF_ENVBUILD_FALSE = "/is/false" ]
  [ RAF_ENVBUILD_ATOM  = "/is/atom" ]
  [ RAF_ENVBUILD_UNRES = "/is/unresolved" ]
  [ RAF_ENVBUILD_RES   = "/is/resolved" ]
]
x-env-path-rewrite: [
  [ RAF_ENVBUILD_TRUE true ]
  [ RAF_ENVBUILD_FALSE false ]
  [ RAF_ENVBUILD_ATOM ":" ("target-quoted") ]
  [ RAF_ENVBUILD_UNRES ":" | ";" ("host" | "target-quoted")]
  [ RAF_ENVBUILD_RES
    (":" { os = "some-os" } | ";" { ! os = "linux" & arch = "arch" | os-version = "4.2" } | ";" )
    ("target" { os = "some-os" } | "host" { ! os = "linux" & arch = "arch" | os-version = "4.2" } | "host" )
  ]

  [ RAF_ENVSET_TRUE true ]
  [ RAF_ENVSET_FALSE false ]
  [ RAF_ENVSET_ATOM ":" ("target-quoted") ]
  [ RAF_ENVSET_UNRES ":" | ";" ("host" | "target-quoted")]
  [ RAF_ENVSET_RES
    (":" { os = "some-os" } | ";" { ! os = "linux" & arch = "arch" | os-version = "4.2" } | ";" )
    ("target" { os = "some-os" } | "host" { ! os = "linux" & arch = "arch" | os-version = "4.2" } | "host" )
  ]
]
### opam install all-formulae -v | sed-cmd sh | unordered
The following actions will be performed:
=== install 1 package
  - install all-formulae 1

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  2/3: [all-formulae: sh env | grep RAF_ENV | sort]
+ sh "-c" "env | grep RAF_ENV | sort" (CWD=${BASEDIR}/OPAM/rewriting/.opam-switch/build/all-formulae.1)
- RAF_ENVBUILD_ATOM=\is\atom
- RAF_ENVBUILD_FALSE=/is/false
- RAF_ENVBUILD_RES=/is/resolved
- RAF_ENVBUILD_TRUE=/is/true
- RAF_ENVBUILD_UNRES=/is/unresolved
-> compiled  all-formulae.1
-> installed all-formulae.1
[ERROR] Formula can't be completely resolved : RAF_ENVBUILD_UNRES ":" true | ";" true. Using default ';' 'target'.
[ERROR] Formula can't be completely resolved : RAF_ENVBUILD_UNRES ("host" true | "target-quoted" true). Using default ';' 'target'.
[ERROR] Formula can't be completely resolved : RAF_ENVSET_UNRES ("host" true | "target-quoted" true). Using default ';' 'target'.
[ERROR] Formula can't be completely resolved : RAF_ENVSET_UNRES ":" true | ";" true. Using default ';' 'target'.
[ERROR] Formula can't be completely resolved : RAF_ENVSET_UNRES ":" true | ";" true. Using default ';' 'target'.
[ERROR] Formula can't be completely resolved : RAF_ENVSET_UNRES ("host" true | "target-quoted" true). Using default ';' 'target'.
[ERROR] Formula can't be completely resolved : RAF_ENVSET_UNRES ":" true | ";" true. Using default ';' 'target'.
[ERROR] Formula can't be completely resolved : RAF_ENVSET_UNRES ("host" true | "target-quoted" true). Using default ';' 'target'.
[ERROR] Formula can't be completely resolved : RAF_ENVSET_UNRES ":" true | ";" true. Using default ';' 'target'.
[ERROR] Formula can't be completely resolved : RAF_ENVSET_UNRES ("host" true | "target-quoted" true). Using default ';' 'target'.
Done.
### opam env | sort | grep "RAF_ENV"
RAF_ENVSET_ATOM='\is\atom'; export RAF_ENVSET_ATOM;
RAF_ENVSET_DBL='sec/ond;fir/st'; export RAF_ENVSET_DBL;
RAF_ENVSET_FALSE='/is/false'; export RAF_ENVSET_FALSE;
RAF_ENVSET_RES='/is/resolved'; export RAF_ENVSET_RES;
RAF_ENVSET_TRUE='/is/true'; export RAF_ENVSET_TRUE;
RAF_ENVSET_UNRES='/is/unresolved'; export RAF_ENVSET_UNRES;
### cat OPAM/rewriting/.opam-switch/environment | grep RAF_ENV
RAF_ENVSET_TRUE	=	/is/true	Updated\ by\ package\ all-formulae
RAF_ENVSET_FALSE	=	/is/false	norewrite	Updated\ by\ package\ all-formulae
RAF_ENVSET_ATOM	=	/is/atom	:	target-quoted	Updated\ by\ package\ all-formulae
RAF_ENVSET_UNRES	=	/is/unresolved	Updated\ by\ package\ all-formulae
RAF_ENVSET_RES	=	/is/resolved	;	host	Updated\ by\ package\ all-formulae
RAF_ENVSET_DBL	+=	fir/st	Updated\ by\ package\ all-formulae
RAF_ENVSET_DBL	+=	sec/ond	Updated\ by\ package\ all-formulae
