As pointed out in the removed comments, this doesn't seem to do
what it was added for. The initial motivation comes from
http://cygwin.com/ml/cygwin/2012-01/msg00201.html but the lower
case tmp/temp don't seem to affect Windows programs.
GetTempPath() and GetEnvironmentStrings() see the uppercase version
here, so do perl and ruby. Only python for some reason prefers
the lowercase version.
Also cygwin and git-for-windows removed this long ago.
Avoid the confusion and remove both env vars.
We now provide ~/.inputrc as /etc/inputrc since fd25584fe3
This means that on the first start we will execute /profile, which
writes various bash related files to $HOME, which bash will execute
after /profile is finished.
So with ~/.inputrc out of the way the environment on the first start
should be the same as the second one, so we can remove the restart
warning at the beginning.
The question remains if we should still call "clear" at the end, hiding
the setup process. I decided for removing it and enclosing the setup with
some colored status message. This hopefully is not too confusing for
users seeing the intial process and still allows an easy way to see the logs
if something goes wrong.
The main reason we have the first install warning still is that we
fill $HOME with bash related scripts that will only get executed
on the next login shell.
Simplify things by keeping MAYBE_FIRST_START logic in one file
and make it depend on wether $HOME was missing at the beginning.
The system include path and system library path are hard-coded into the pkg-config executables as UNIX style paths. That leads to those paths not matching literally in the MinGW environments where paths are converted to Windows paths.
Also set environment variables with the same paths. That works because environment variables are automatically converted for MinGW executables.
We want configure to always go through our config.site. It first
looks at CONFIG_SITE, then the prefix if there is one and then falls
back to our default. But this means if a prefix is set it wouldn't
use it.
Fix this by setting CONFIG_SITE always like before.
Broken by 9a37bb560a
It calls install-info on all info files on the first MSYS2 start, but all
the info files are already installed in our current installer.
I'm not 100% sure why this was added, but I guess because of #1998 the installer
created in a chroot didn't install the info files properly and thus they were
missing on a fresh install. This is no longer the case now.
regen-info.sh is called in /etc/profile and part of the "backup" array in the PKGBUILD
so the call might not be removed if the user has changed /etc/profile. Since it is only
called in the first MSYS2 session this shouldn't lead to any problems.
* Remove double quotes of the LOGINSHELL
When set shell arguments, LOGINSHELL has double quotes.
In the default, L6: set "LOGINSHELL=bash".
I followed the format it.
* Add value to $SHELL for zsh
Issue:
1. Run, C:\msys64\msys2_shell.cmd -mingw64 -shell zsh
2. echo $SHELL
3. Nothing
* Avoid continuously appending items to MANPATH and INFOPATH when
sourcing /etc/profile multiple times.
* Check for .bashrc existence in shell manager.
MSYSTEM now defaults to MSYS when not specified, and there is no
different behavior anymore between empty value and MSYS, for example
/opt/bin was not being added to path when not setting MSYSTEM. This
removes the need for explicitly setting the variable, since a default
value is now implied.
* New script /etc/msystem providing information associated with the
current MSYSTEM. This is sourced by /etc/profile but can be used by
non-login scripts for getting information such as the current
compiler architecture or mount point.
* New script /usr/bin/shell for switching between shells without
restarting MSYS2. This can be used in interactive sessions but also
from shell scripts for switching the MSYSTEM without restarting bash
or spawning a subshell.
* Allow /etc/profile to be sourced multiple times without continuously
appending stuff to PATH or losing track of the original Windows TEMP.
Also implemented for /etc/profile.d/perlbin.sh, so perl path is not
repeatedly appended.
The generic variable SET_FULL_PATH has been replaced with MSYS2_PATH_TYPE, which
can accept the following values:
* strict: no Windows path.
* inherit: full Windows path.
* Other values: minimal Windows path (default).