X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 1 Dec 2009 10:15:16 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Unset TMP/TEMP in profile? (was Re: [ANNOUNCEMENT] [1.7] Updated:  cygwin-1.7.0-67)
Message-ID: <20091201091515.GC30043@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <4B14573C.3040409@alice.it>  <a13b5a590911301753w74ccf298g669e55fc58d36c50@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <a13b5a590911301753w74ccf298g669e55fc58d36c50@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Nov 30 20:53, Robert Pendell wrote:
> On Mon, Nov 30, 2009 at 6:37 PM, Angelo Graziosi
> <angelo.graziosi@alice.it> wrote:
> > Robert Pendell wrote:
> >>
> >> P.S. - On linux (when I tested) TEMP, TMP, and TMPDIR were not set and
> >> patch defaulted to /tmp.
> >
> > I noticed that too...
> >
> > Ken Brown wrote:
> >>
> >> That's precisely why I suggested unsetting TEMP and TMP in /etc/profile.
> >> Then things should work as in linux.
> >
> > Indeed. But a question emerges: what does it happen if one starts a Windows
> > application, which needs TEMP or TMP, from Cygwin?
> >
> > For example, GSview (*) can view ps.bz2 or pdf.bz2 files uncompressing them
> > into $TEMP, so it fails if TEMP is not defined, and
> >
> > $ gsview foo.pdf.bz2
> >
> > is broken!
> >
> > This is only an example of problems which can emerge unsetting TEMP.
> >
> > Ciao,
> > Angelo.
> >
> 
> Actually I had thought about that and I found that if you
> intentionally unset all the variables it defaults back to the system
> defined one which is dependent on the current user in Windows.
> Basically what TEMP and TMP is defined to in Windows itself.  This is
> like the behavior in Linux.

I'm wondering if /etc/profile is actually the right place for unsetting
TMP and TEMP.  What about etc/defaults/etc/skel/.bashrc instead?  It
allows every user simple access to the setting of TMP and TEMP and it
could be seasoned with a user-visible comment.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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

