X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18584.18424.809720.530028@gepard2.akutech-local.de> Date: Tue, 5 Aug 2008 14:30:48 +0200 From: Ralf Fassel To: cygwin AT cygwin DOT com Subject: Re: environment variables derived from TMPDIR In-Reply-To: <4898409F.1010306@byu.net> References: <18584 DOT 12950 DOT 943391 DOT 75971 AT gepard2 DOT akutech-local DOT de> <4898409F DOT 1010306 AT byu DOT net> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 * Eric Blake | | # call program: error: no such file /cygdrive/c/temp/foo.1234 | | # filename should be c:/temp/foo.1234 | | external_program "$TMPFILE" | | 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. Have to check whether that rest is really 5%, and whether conditionally calling cygpath is ok there. | Don't work too hard, make some time for fun as well! Thanks for pointing out ;-) I must admit that after one week of trying several SHELL environments on Windows and running into problems on each my visual field is very narrow by now. 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/