X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org X-Authority-Analysis: v=1.0 c=1 a=JSHY3qbo5HMA:10 a=h9HudRQw1T0A:10 a=xe8BsctaAAAA:8 a=_ekvtTMfNzuDUch48GUA:9 a=1BHPXUsMTSXJV8cD38BcxrT30JwA:4 a=eDFNAWYWrCwA:10 a=rPt6xJ-oxjAA:10 Message-ID: <4898409F.1010306@byu.net> Date: Tue, 05 Aug 2008 05:59:27 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com, ralfixx AT gmx DOT de Subject: Re: environment variables derived from TMPDIR References: <18584 DOT 12950 DOT 943391 DOT 75971 AT gepard2 DOT akutech-local DOT de> In-Reply-To: <18584.12950.943391.75971@gepard2.akutech-local.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Ralf Fassel on 8/5/2008 4:59 AM: | # 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" | | Alternatively, would it be a good idea to mark variables derived from | auto-converted variables to become auto-converted on export, too? | Something like the 'tainted' variables in perl? Not really possible. Cygwin has no idea how the environment was populated. Unlike 'tainted' variables in perl, where the variable is at all times under the control of a single application, with env vars, the management of environ is by cygwin1.dll but the specification of contents of new variables is under control of the application. There just isn't a way to make all applications inform cygwin how those variables were created. - -- Don't work too hard, make some time for fun as well! Eric Blake ebb9 AT byu DOT net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkiYQJ8ACgkQ84KuGfSFAYCm1ACeIS7PHK0H8odIF4ua/uQVnBgl a4MAoLkN+oOzsAC/F/2xoTErijpEU9UD =W6i5 -----END PGP SIGNATURE----- -- 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/