This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Unset TMP/TEMP in profile? (was Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-67)

On 7 March 2011 17:46, Andy Koppe wrote:
> On 7 March 2011 22:13, Ken Brown wrote:
>> On 3/7/2011 8:42 AM, Andy Koppe wrote:
>>> In the current 3.9-3, TEMP and TMP are unset in ~/.bashrc, as
>>> suggested here by Corinna. Thing is, ~/.bashrc is only sourced for
>>> non-login shells, yet the default console/mintty/rxvt shortcuts all
>>> invoke bash as a login shell. In other words, this change might as
>>> well not have been made as far as the vast majority of users are
>>> concerned.
>> I don't think that's right. ?The default ~/.bash_profile sources ~/.bashrc,
>> so the latter does get sourced for login shells.
> You're right. I was under the wrong impression that that was new with
> base-files 4.0.

FWIW, I'd prefer to keep the unsetting of TEMP/TMP in ~/.bashrc (i.e.
based on user preference) vs. /etc/profile, since I have multiple
accounts on one of my machines and with my 'work' account, if I
cygstart several different native Windows apps without TEMP/TMP being
set they don't play nice.  I realize I could write wrapper scripts as
per Angelo's suggestion, but I'd prefer not to.

As the old adage goes, if it ain't broke, don't fix it...


Chris Sutcliffe

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]