On 9. 4. 2015 0:05, Paul Moore wrote:
> On 8 April 2015 at 22:16, Matthieu Vachon <[email protected]> wrote:
>>> 1. Are the --login -i flags essential to correct working? Would I be
>>> able, for example, to simply run msys64\usr\bin\sh.exe -c "configure;
>>> make"?

The --login flag is important, unless you make sure to source /etc/profile 
manually after starting your shell. Then choose between -i and -c according to 
your use case: -i means interactive, -c means run command. I can't think of a 
situation where you would use both.

> Looks like the cd into $HOME is done by
> /etc/post-install/05-home-dir.post. Seriously, what's a profile doing
> changing directory?

Interactive shells starting in user's home directory is a standard thing on 
Linux AFAIK, so that's why.

You can set CHERE_INVOKING=1 before starting the shell and it won't change 
directories.

> And for that matter, why does *every* login shell
> rerun the postinstall scripts?

Cygwin/MSYS2 is an OS inside an OS. Depending on your settings and environment, 
it has to set up various things so that it's in sync with Windows. It has to do 
this on every start because there's no notification system for this.

> My only concern is that, if I hack around with /etc/profile and the
> scripts it calls, how much will I cause problems further down the line
> with maintaining msys2? I feel that as I'm in effect the sysadmin of
> the environment, I should be able to customise it as I wish, but
> what's going on in there seems like it might be pretty fundamental to
> the system. It's pretty frustrating - it feels like I have to do
> things the way msys2 wants me to, or I'll hit issues.

Kind of, but I think MSYS2 is flexible enough so that you won't feel restricted 
by its requirements.

-- 
David Macek

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to