Closed Almenon closed 5 years ago
I agree that it shouldn't do that. Here's the relevant function check_umask_not_zero
which calls shell_profile
.
Here's the definition of shell_profile
:
When preferred
is bash
, it should return ~/.bash_profile
if it exists, and if not ~/.profile
.
Would you like to submit a PR to https://github.com/Homebrew/brew/ ?
Note that Linuxbrew/brew is being merged into Homebrew/brew.
This issue is a recognized bug, but I'm closing this issue, since no one is actively working on it.
Please note that we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
brew
command and reproduced the problem with multiple formulae? If it's a problem with a single, official formula (not cask) please file this issue at Linuxbrew/homebrew-core: https://github.com/Linuxbrew/homebrew-core/issues/new/choose. If it's abrew cask
problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew config
andbrew doctor
and included their output with your issue?What you were trying to do (and why)
Fix umask as reported by brew doctor
What happened (include command output)
Executed the suggested command:
This created a ~/.bash_profile file. Unbeknownst to me the bash_profile overrides my .profile file, causing my aliases to dissapear among everything else in the .profile. At first I was baffled untill I realized what was going on.
What you expected to happen
I would've expected the suggested command to work for both bash_profile and profile, like so:
Step-by-step reproduction instructions (by running
brew
commands)