X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=yxXasLaiPzSvwYUobBVM43EtMgH9ssuMRG8EhxZ+h0m axCKxbMFcZ5ta+ntA/xM+cYCHtU7BpBjT5P4XqbRSLIjVsM/0r+MLUpKg8zxzUIV 8PfibDQdHODBc7dcjWGEc1X6IUJ8ihctZMiynsMM4kJLsZ6v/7CL3QgEwrBnTIPc = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type:content-transfer-encoding; s=default; bh=uPKxzbjINqWJpUwg5PgHzsq9tTg=; b=jR5fpwdyiqLVTBLfU RREK/yRfkKrccnQQVGROHqwZnCFfCfmUKQMVQNldCNh1DThO0arwH6Yz9nEWBz1A aW+f5sXB/BWxuHFIr/bBucbhAWeEAWU6JRL48cExMFl4QpIKvspycEcrIFanXV2+ D4U4ZCTuHd9ql/J+NVm28PjvgI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-in-09.arcor-online.net X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-06.arcor-online.net 3kzjVW1JRRz8Fvq From: Achim Gratz To: cygwin AT cygwin DOT com Subject: Re: directories for temporary files References: <21754 DOT 10842 DOT 551067 DOT 251606 AT zaphod DOT ms25 DOT net> Date: Sat, 07 Mar 2015 11:58:58 +0100 In-Reply-To: <21754.10842.551067.251606@zaphod.ms25.net> (Reinhard Kotucha's message of "Fri, 6 Mar 2015 23:29:46 +0100") Message-ID: <87lhj9oyz1.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t27AxI8A011048 Reinhard Kotucha writes: > However, there is a bug in /etc/profile. The variables TMP and TEMP > are set to /tmp but they are absolutely useless. These variables are > not used by any program. Thus all programs write temporary files to > /tmp, regardless of the settings TMP or TEMP. They are used by Windows programs when they are started from Cygwin. Those lines are actually preceded by a comment that explains this. > The appropriate variable on Unix is TMPDIR. It's recognized by > programs on *all* Unix systems. > > You can confirm this easily. Create a directory /tmp/foo and set > TMPDIR=/tmp/foo. You'll see that all temporary files go to the > specified directory then. No chance with TMP or TEMP. …and since the default already is /tmp there is no reason to set this variable explicitly in /etc/profile. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for KORG EX-800 and Poly-800MkII V0.9: http://Synth.Stromeko.net/Downloads.html#KorgSDada -- 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