caml-list - the Caml user's mailing list
 help / Atom feed
From: "Soegtrop, Michael" <michael.soegtrop@intel.com>
To: "caml-list@inria.fr" <caml-list@inria.fr>
Subject: [Caml-list] Opam env hook obscurities
Date: Wed, 1 May 2019 20:52:37 +0000
Message-ID: <0F7D3B1B3C4B894D824F5B822E3E5A178FD5F8B5@IRSMSX102.ger.corp.intel.com> (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?

Best regards,

Michael
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 --]

                 reply index

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0F7D3B1B3C4B894D824F5B822E3E5A178FD5F8B5@IRSMSX102.ger.corp.intel.com \
    --to=michael.soegtrop@intel.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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