delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/08/05/09:50:28

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Message-ID: <18584.22979.626733.30138@gepard2.akutech-local.de>
Date: Tue, 5 Aug 2008 15:46:43 +0200
From: Ralf Fassel <ralfixx AT gmx DOT de>
To: cygwin AT cygwin DOT com
Subject: Re: environment variables derived from TMPDIR
In-Reply-To: <18584.18424.809720.530028@gepard2.akutech-local.de>
References: <18584 DOT 12950 DOT 943391 DOT 75971 AT gepard2 DOT akutech-local DOT de> <4898409F DOT 1010306 AT byu DOT net> <18584 DOT 18424 DOT 809720 DOT 530028 AT gepard2 DOT akutech-local DOT de>
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

* Ralf Fassel
| | Does it work to pass the contents of the file on stdin instead of
| | the file name as an argument?
| | 
| | external_program < "$TMPFILE"
| 
| Duh.  This should work in 95% of the cases.  In the other cases file
| size of TMPFILE is involved, so redirection would not work as-is.

Turns out that in most cases where a TMPFILE is required, it is
actually two temp files, and the temp file is the second input for the
program in question (stdin is the first).

So I guess we will change all the scripts to use a different
env-Variable when constructing the temp file name, and set that
variable on startup in the base-shell.

R'

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019