Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #11802
| Path | csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Chet Ramey <chet.ramey@case.edu> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: "su -m" (on Mac) preserves $HOME and $USER but not ~ |
| Date | Thu, 29 Oct 2015 20:36:58 -0400 |
| Organization | ITS, Case Western Reserve University |
| Lines | 27 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.1287.1446165438.7904.bug-bash@gnu.org> (permalink) |
| References | <20151029170210.0ACA061A6C27@triton.parabon.com> |
| Reply-To | chet.ramey@case.edu |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | usenet.stanford.edu 1446165439 9165 208.118.235.17 (30 Oct 2015 00:37:19 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| Cc | chet.ramey@case.edu |
| To | dabe@dabe.com, bug-bash@gnu.org |
| Envelope-to | bug-bash@gnu.org |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
| In-Reply-To | <20151029170210.0ACA061A6C27@triton.parabon.com> |
| X-Mirapoint-Virus-RAPID-Raw | score=unknown(0), refid=str=0001.0A020202.5632BBAB.001C,ss=1,re=0.000,fgs=0, ip=173.191.75.166, so=2015-08-12 04:07:17, dmn=2011-05-27 18:58:46 |
| X-Mirapoint-Loop-Id | 249490a52b91bfa7fe893ceb6d914c81 |
| X-Junkmail-Whitelist | YES (by domain whitelist at mpv1-2015.case.edu) |
| X-Mirapoint-Virus-RAPID-Raw | score=unknown(0), refid=str=0001.0A020203.5632BBAD.00FF,ss=1,re=0.000,fgs=0, ip=173.191.75.166, so=2015-08-12 04:07:17, dmn=2011-05-27 18:58:46 |
| X-Mirapoint-Loop-Id | 1e079ec487db82fdfa0096a38fc311f6 |
| X-detected-operating-system | by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] |
| X-Received-From | 129.22.103.226 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.14 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <http://lists.gnu.org/archive/html/bug-bash> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| Xref | csiph.com gnu.bash.bug:11802 |
Show key headers only | View raw
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