On 10/29/15 1:02 PM, d...@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 c...@case.edu http://cnswww.cns.cwru.edu/~chet/