Mail Archives: cygwin/2011/03/08/07:39:07
X-Recipient: | archive-cygwin AT delorie DOT com
|
X-SWARE-Spam-Status: | No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
|
X-Spam-Check-By: | sourceware.org
|
MIME-Version: | 1.0
|
In-Reply-To: | <AANLkTi=g=ja-jOm2nM3CsBSs-GANn3o-J_y++c9-mGJ-@mail.gmail.com>
|
References: | <4B14573C DOT 3040409 AT alice DOT it> <a13b5a590911301753w74ccf298g669e55fc58d36c50 AT mail DOT gmail DOT com> <20091201091515 DOT GC30043 AT calimero DOT vinschen DOT de> <AANLkTimtUQV5LCymquHFe115JL4S9Ld-GUgdLJbetan8 AT mail DOT gmail DOT com> <4D755880 DOT 2040800 AT cornell DOT edu> <AANLkTinj1pnTqkhSVh-inmozn6X29Ark7F8V2bTjTnFF AT mail DOT gmail DOT com> <AANLkTi=g=ja-jOm2nM3CsBSs-GANn3o-J_y++c9-mGJ- AT mail DOT gmail DOT com>
|
Date: | Tue, 8 Mar 2011 12:37:12 +0000
|
Message-ID: | <AANLkTikfc2QJ19HxoJg_EwUcCt1EC0inmRNrU2rSMfii@mail.gmail.com>
|
Subject: | Re: Unset TMP/TEMP in profile? (was Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-67)
|
From: | Andy Koppe <andy DOT koppe AT gmail DOT com>
|
To: | cygwin AT cygwin DOT com
|
X-IsSubscribed: | yes
|
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm
|
List-Id: | <cygwin.cygwin.com>
|
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
|
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com>
|
List-Archive: | <http://sourceware.org/ml/cygwin/>
|
List-Post: | <mailto:cygwin AT cygwin DOT com>
|
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
|
Sender: | cygwin-owner AT cygwin DOT com
|
Mail-Followup-To: | cygwin AT cygwin DOT com
|
Delivered-To: | mailing list cygwin AT cygwin DOT com
|
On 8 March 2011 12:06, Chris Sutcliffe wrote:
> 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. =C2=A0The 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
Same here. Also, the point that so far only few people have had the
"benefit" of the unsetting of TMP and TEMP still partially stands,
because only recently created home directories will have a .bashrc
with it. In light of that, I'd still like to see this commented out by
default.
Alternatively, how about setting them to /tmp? Looking back through
the thread, that also addressed the original issue with patched files
inheriting permissions from the user's Windows temp folder, yet it
should still work for non-Cygwin programs.
> 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. =C2=A0I realize I could write wrapper scripts as
> per Angelo's suggestion, but I'd prefer not to.
Ditto.
Andy
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -