🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #573

bash seems to execute ".profile" when it shouldn't

#573
From: Thomas M. Breuel
Date: Mon, 11 Sep 1989 02:16
10 lines
715 bytes
wilde$ # this is /bin/sh running on an HP 9000/350 running HP-UX
wilde$ bash
this was the .profile
wilde$ help|sed 1q
GNU bash, version 1.03.11 (plus HPUX hacks)
wilde$ logout
wilde$

Bash should only execute $HOME/.profile when it is invoked with
argv[0][0]=='-', following the standard UNIX convention.
Technical Details
Message-ID: <8909110216.AA05623@wilde.ai.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!AI.MIT.EDU!tmb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!AI.MIT.EDU!tmb
From: tmb@AI.MIT.EDU (Thomas M. Breuel)
Newsgroups: gnu.bash.bug
Subject: bash seems to execute ".profile" when it shouldn't
Message-ID: <8909110216.AA05623@wilde.ai.mit.edu>
Date: 11 Sep 89 02:16:36 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 10