Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #11802
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: "su -m" (on Mac) preserves $HOME and $USER but not ~ |
| Date | 2015-10-29 20:36 -0400 |
| Organization | ITS, Case Western Reserve University |
| Message-ID | <mailman.1287.1446165438.7904.bug-bash@gnu.org> (permalink) |
| References | <20151029170210.0ACA061A6C27@triton.parabon.com> |
On 10/29/15 1:02 PM, dabe@dabe.com wrote: > Machine Type: x86_64-apple-darwin13.4.0 > > Bash Version: 4.3 > Patch Level: 42 > Release Status: release > > Description: > > I'm hoping this issue has been solved before, but I couldn't > find any answers on the 'Net... > > When I "su -m", my $HOME environment variable is preserved okay > (i.e., it remains my original home directory) but often[*] '~' > is set to the target (root) user's home directory. I can't reproduce this on Mac OS X 10.11. It's weird to see how it could happen, since ~ expands to $HOME and goes to the password file only if that is unset. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
Back to gnu.bash.bug | Previous | Next | Find similar
Re: "su -m" (on Mac) preserves $HOME and $USER but not ~ Chet Ramey <chet.ramey@case.edu> - 2015-10-29 20:36 -0400
csiph-web