* [Caml-list] Opam env hook obscurities
@ 2019-05-01 20:52 Soegtrop, Michael
0 siblings, 0 replies; 1+ messages in thread
From: Soegtrop, Michael @ 2019-05-01 20:52 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 1596 bytes --]
Dear Opam Team,
first let me say that I am using the Cygwin MinGW cross opam from https://fdopen.github.io/opam-repository-mingw/installation/.
I have the call to .opam/opam-init/init.sh in my .bach_profile file.
I observe two obscurities with this setup:
1.) It is really hard to get rid of the opam path settings, I guess cause of the environment hook installed. E.g. although opam env -revert displays the correct original "pre opam" PATH, evaluating with eval $(opam env -revert) does not have the desired effect - the PATH is exactly as before. I guess the environment hook immediately sets it back it. How can I temporarily get back to my original PATH?
2.) Apparently the MANPATH gets longer each time I execute a command in bash. E.g. when I do a few times "echo $MANPATH | wc" the length displayed by wc increases each time (by one additional reference to the opam man path). This is unfortunate because the total environment of a process is quite limited under Cygwin/windows (I think to 8k).
Is this specific to the MinGW cross opam or is this a general problem?
Do others have the call to .opam/opam-init/init.sh in there profile or a simple eval $(opam env)? What is the advantage of this rather invasive hook?
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Gary Kershaw
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
[-- Attachment #2: Type: text/html, Size: 6168 bytes --]
^ permalink raw reply [flat|nested] 1+ messages in thread
only message in thread, back to index
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-01 20:52 [Caml-list] Opam env hook obscurities Soegtrop, Michael
caml-list - the Caml user's mailing list
Archives are clonable: git clone --mirror https://inbox.ocaml.org/caml-list
AGPL code for this site: git clone https://public-inbox.org/ public-inbox