forked from git/git
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Description
Setup
- Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
Installer is Git-2.24.1.2-64-bit.exe
git version 2.24.1.windows.2
cpu: x86_64
built from commit: 992f0773022527b1b0cb1e0c13aec97dd5248053
sizeof-long: 4
sizeof-size_t: 8
- Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver
Microsoft Windows [Version 10.0.18362.535]
(c) 2019 Microsoft Corporation. All rights reserved.
- What options did you set as part of the installation? Or did you choose the
defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
Editor Option: VIM
Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
Enable Builtin Interactive Add: Disabled
- Any other interesting things about your environment that might be related
to the issue you're seeing?
** insert your response here **
Details
- Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other
Bash. (This issue is completely about bash and not git itself)
- What commands did you run to trigger this issue? If you can provide a
Minimal, Complete, and Verifiable example
this will help us understand the issue.
I created files .profile and .bashrc in C:\Users\Neil Strickland, containing lines
`export $PROFILE_READ=1` and `export $BASHRC_READ=1` respectively.
I then executed `C:\Program Files\Git\bin\bash.exe` (either by typing that
path in a cmd.exe window, or by clicking Terminal in VS Code) and at the
resulting bash prompt I entered `echo $PROFILE_READ` and `echo $BASHRC_READ`.
I then executed `C:\Program Files\Git\git-bash.exe` (either by typing this path
in a cmd.exe window, or by starting Git Bash from the Start Menu) and again
entered `echo $PROFILE_READ` and `echo $BASHRC_READ` at the bash prompt.
- What did you expect t o occur after running these commands?
I expected that C:\Program Files\Git\bin\bash.exe
and C:\Program Files\Git\git-bash.exe
would give the same result.
- What actually happened instead?
C:\Program Files\Git\bin\bash.exe
apparently reads .bashrc but not .profile;
C:\Program Files\Git\git-bash.exe
apparently reads .profile but not .bashrc.
(Specifically, executing echo $PROFILE_READ
gives an empty response with bash.exe and gives 1 with git-bash.exe; for echo $BASHRC_READ
it is the other way around.)
- If the problem was occurring with a specific repository, can you provide the
URL to that repository to help us with testing?
Not applicable