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

2011-03-11 Thread Andy Koppe
On 11 March 2011 19:36, David Sastre wrote: >> David, any problem to create tmp.sh and tmp.csh in profile.d for this >> purpose? >> >> Anyway, after that change it's really time to start using the new >> base-files package.  It's pending already too long, IMHO. > > I've been thinking about this, an

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

2011-03-11 Thread David Sastre
On Thu, Mar 10, 2011 at 10:17:08AM +0100, Corinna Vinschen wrote: > On Mar 9 20:29, Thomas Wolff wrote: > > Am 09.03.2011 10:26, schrieb Corinna Vinschen: > > >That's certainly feasible in some way, but I don't understand what > > >you're trying to accomplish. In what situation would this have to

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

2011-03-10 Thread Thomas Wolff
Am 10.03.2011 15:40, schrieb Jon TURNEY: On 09/03/2011 19:29, Thomas Wolff wrote: For example if cygwin is still installed on a FAT drive (I know ...) it may be useful (for all users) to switch /tmp to an NTFS directory (e.g. XWin used to fail with a FAT /tmp for a while). This is wrong on seve

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

2011-03-10 Thread Jon TURNEY
On 09/03/2011 19:29, Thomas Wolff wrote: > For example if cygwin is still installed on a FAT drive (I know ...) it may be > useful (for all users) to switch /tmp to an NTFS directory (e.g. XWin used to > fail with a FAT /tmp for a while). This is wrong on several counts. XWin still fails with /tm

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

2011-03-10 Thread Corinna Vinschen
On Mar 9 20:29, Thomas Wolff wrote: > Am 09.03.2011 10:26, schrieb Corinna Vinschen: > >That's certainly feasible in some way, but I don't understand what > >you're trying to accomplish. In what situation would this have to be > >changed on a per-system level? Why isn't it sufficient that the >

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

2011-03-09 Thread Thomas Wolff
Am 09.03.2011 10:26, schrieb Corinna Vinschen: On Mar 9 08:25, Andy Koppe wrote: On 8 March 2011 15:03, Andy Koppe wrote: On Mar 8 13:49, David Sastre wrote: 2011/3/8, Chris Sutcliffe wrote: FWIW, I'd prefer to keep the unsetting of TEMP/TMP in ~/.bashrc (i.e. based on user preference) vs.

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

2011-03-09 Thread Andy Koppe
On 9 March 2011 10:33, Corinna Vinschen wrote: > On Mar  9 09:46, Andy Koppe wrote: >> On 9 March 2011 09:26, Corinna Vinschen wrote: >> > On Mar  9 08:25, Andy Koppe wrote: >> >> >> On Mar  8 13:49, David Sastre wrote: >> >> >>> if TMP/TEMP has to be unset, or set to /tmp per default, or any >> >>

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

2011-03-09 Thread Corinna Vinschen
On Mar 9 09:46, Andy Koppe wrote: > On 9 March 2011 09:26, Corinna Vinschen wrote: > > On Mar  9 08:25, Andy Koppe wrote: > >> >> On Mar  8 13:49, David Sastre wrote: > >> >>> if TMP/TEMP has to be unset, or set to /tmp per default, or any > >> >>> other default > >> >>> decided here, that is some

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

2011-03-09 Thread Andy Koppe
On 9 March 2011 09:26, Corinna Vinschen wrote: > On Mar  9 08:25, Andy Koppe wrote: >> >> On Mar  8 13:49, David Sastre wrote: >> >>> if TMP/TEMP has to be unset, or set to /tmp per default, or any >> >>> other default >> >>> decided here, that is something to be done in /etc/profile, IMHO. >> >> O

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

2011-03-09 Thread Corinna Vinschen
On Mar 9 08:25, Andy Koppe wrote: > On 8 March 2011 15:03, Andy Koppe wrote: > >> On Mar  8 13:49, David Sastre wrote: > >>> 2011/3/8, Chris Sutcliffe wrote: > >>> > FWIW, I'd prefer to keep the unsetting of TEMP/TMP in ~/.bashrc (i.e. > >>> > based on user preference) vs. /etc/profile, since I ha

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

2011-03-09 Thread Andy Koppe
On 8 March 2011 15:03, Andy Koppe wrote: >> On Mar  8 13:49, David Sastre wrote: >>> 2011/3/8, Chris Sutcliffe wrote: >>> > 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 machi

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

2011-03-08 Thread Andy Koppe
> On Mar  8 13:49, David Sastre wrote: >> 2011/3/8, Chris Sutcliffe wrote: >> > 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 >> > cygs

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

2011-03-08 Thread Corinna Vinschen
On Mar 8 13:49, David Sastre wrote: > 2011/3/8, Chris Sutcliffe wrote: > > 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 se

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

2011-03-08 Thread David Sastre
2011/3/8, 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 fo

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

2011-03-08 Thread Andy Koppe
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 on

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

2011-03-08 Thread Chris Sutcliffe
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

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

2011-03-08 Thread Andy Koppe
On 7 March 2011 22:48, Thomas Wolff wrote: > Indeed. But a question emerges: what does it happen if one starts a > Windows > application, which needs TEMP or TMP, from Cygwin? > > A Windows application is likely to fail on cygpath-transformed values of > TEMP and TMP anyway, or am I mis

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

2011-03-07 Thread Thomas Wolff
Just commenting on one aspects: On Mon, Nov 30, 2009 at 6:37 PM, Angelo Graziosi wrote: ... 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

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

2011-03-07 Thread Andy Koppe
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 ba

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

2011-03-07 Thread Ken Brown
On 3/7/2011 8:42 AM, Andy Koppe wrote: On 1 December 2009 09:15, Corinna Vinschen wrote: On Nov 30 20:53, Robert Pendell wrote: On Mon, Nov 30, 2009 at 6:37 PM, Angelo Graziosi wrote: Robert Pendell wrote: P.S. - On linux (when I tested) TEMP, TMP, and TMPDIR were not set and patch defaulted

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

2011-03-07 Thread Angelo Graziosi
Just for the record... Andy Koppe wrote: Some (badly written) Windows programs expect TEMP and/or TMP to always be set to a valid directory and will misbehave when they aren't. [...] and if they're unlucky, stuff might even get overwritten. For Windows native applications, I adopted this s

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

2011-03-07 Thread Andy Koppe
On 1 December 2009 09:15, Corinna Vinschen wrote: > On Nov 30 20:53, Robert Pendell wrote: >> On Mon, Nov 30, 2009 at 6:37 PM, Angelo Graziosi wrote: >> > Robert Pendell wrote: >> >> >> >> P.S. - On linux (when I tested) TEMP, TMP, and TMPDIR were not set and >> >> patch defaulted to /tmp. >> > >>

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

2009-12-01 Thread Robert Pendell
On Tue, Dec 1, 2009 at 1:03 PM, Christopher Faylor wrote: > On Tue, Dec 01, 2009 at 11:32:43AM -0500, Robert Pendell wrote: >>They are not reset but during an strace I discovered that cygwin will >>internally default to the system defined TEMP if one isn't defined in >>cygwin.  In other words if it

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

2009-12-01 Thread Christopher Faylor
On Tue, Dec 01, 2009 at 11:32:43AM -0500, Robert Pendell wrote: >They are not reset but during an strace I discovered that cygwin will >internally default to the system defined TEMP if one isn't defined in >cygwin. In other words if it has been unset. This is similar to >linux using /tmp by defau

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

2009-12-01 Thread Robert Pendell
On Tue, Dec 1, 2009 at 5:44 AM, John Morrison wrote: > On Tue, December 1, 2009 9:15 am, Corinna Vinschen wrote: >> On Nov 30 20:53, Robert Pendell wrote: >>> On Mon, Nov 30, 2009 at 6:37 PM, Angelo Graziosi >>>wrote: >>> > Robert Pendell wrote: >>> >> >>> >> P.S. - On linux (when I tested) TEMP, T

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

2009-12-01 Thread Corinna Vinschen
On Dec 1 14:24, Angelo Graziosi wrote: > Ken Brown wrote: > >Here's one possibility, but it may be a little too verbose: > > Melius abundare quam deficere! > > I want just to flag that in the next release of base-files package, > one should remove '/usr/X11R6/bin' from the definition of PATH. Bu

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

2009-12-01 Thread Corinna Vinschen
On Dec 1 08:12, Ken Brown wrote: > On 12/1/2009 5:44 AM, John Morrison wrote: > >They don't get 'reset' to the windows default... but then, I've not really > >been following this thread. Is that what's wanted? > > No, they're not expected to get reset. > > >Also, $PATCH and $TMPDIR weren't defi

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

2009-12-01 Thread Andy Koppe
2009/12/1 Ken Brown: > On 12/1/2009 5:44 AM, John Morrison wrote: >> Unsetting them in the skel .bashrc files shouldn't be a problem to do, but >> on my system... >> >> $ echo $TMP >> /cygdrive/c/DOCUME~1/morrijr/LOCALS~1/Temp >> >> Tue Dec 01 10:40 AM >> $ unset TMP >> >> Tue Dec 01 10:40 AM >> $

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

2009-12-01 Thread Angelo Graziosi
Ken Brown wrote: Here's one possibility, but it may be a little too verbose: Melius abundare quam deficere! I want just to flag that in the next release of base-files package, one should remove '/usr/X11R6/bin' from the definition of PATH. But, perhaps, this is already in John's ToDo list. :

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

2009-12-01 Thread Ken Brown
On 12/1/2009 5:44 AM, John Morrison wrote: On Tue, December 1, 2009 9:15 am, Corinna Vinschen wrote: 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

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

2009-12-01 Thread John Morrison
On Tue, December 1, 2009 9:15 am, Corinna Vinschen wrote: > On Nov 30 20:53, Robert Pendell wrote: >> On Mon, Nov 30, 2009 at 6:37 PM, Angelo Graziosi >> wrote: >> > Robert Pendell wrote: >> >> >> >> P.S. - On linux (when I tested) TEMP, TMP, and TMPDIR were not set >> and >> >> patch defaulted to

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

2009-12-01 Thread Corinna Vinschen
On Nov 30 20:53, Robert Pendell wrote: > On Mon, Nov 30, 2009 at 6:37 PM, Angelo Graziosi > 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: > >> >