Bug #29179 | ReadMe file with OS X package is wrong about .bashrc file | ||
---|---|---|---|
Submitted: | 18 Jun 2007 15:12 | Modified: | 13 Jul 2007 2:19 |
Reporter: | Rob Lewis (Candidate Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 5.1.18 | OS: | MacOS (10.4.9) |
Assigned to: | Paul DuBois | CPU Architecture: | Any |
Tags: | .bashrc, bash, path, readme |
[18 Jun 2007 15:12]
Rob Lewis
[18 Jun 2007 15:56]
Sveta Smirnova
Thank you for the report. Verified as described. Strictly say these words are just a tip, not BASH user manual. But according to BASH manual this phrase can be replaced with something like "For example, add the following line to your `$HOME/.bashrc' or `$HOME/.bash_profile' file if your shell is `bash':": When bash is invoked as an interactive login shell, or as a non-inter- active shell with the --login option, it first reads and executes com- mands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behavior. When a login shell exits, bash reads and executes commands from the file ~/.bash_logout, if it exists. When an interactive shell that is not a login shell is started, bash reads and executes commands from ~/.bashrc, if that file exists. This may be inhibited by using the --norc option. The --rcfile file option will force bash to read and execute commands from file instead of ~/.bashrc.
[13 Jul 2007 2:19]
Paul DuBois
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant products. I've rewritten the setting-environment-variables section (http://dev.mysql.com/doc/refman/5.0/en/setting-environment-variables.html) to include the material from the Mac OS X section on setting PATH. The section mentions both .bashrc and .bash_profile. I also removed the PATH-setting stuff from the Mac OS X section and added a pointer from there to the environment variable section, which is really whether that material properly goes.