Re: environment variables derived from TMPDIR

2008-08-05 Thread Tim McDaniel
On Tue, 5 Aug 2008, Kurt Franke <[EMAIL PROTECTED]> wrote: Ralf Fassel gmx.de> writes: In a SHELL script I prepare a temp file to pass to some non-cygwin program: # TMPDIR is set to c:/temp outside of cygwin # which translates to /cygdrive/c/temp inside cygwin # prepare input T

Re: environment variables derived from TMPDIR

2008-08-05 Thread Kurt Franke
Hi Ralf, Ralf Fassel gmx.de> writes: > > In a SHELL script I prepare a temp file to pass to some non-cygwin > program: > > # TMPDIR is set to c:/temp outside of cygwin > # which translates to /cygdrive/c/temp inside cygwin > # prepare input > TMPFILE=$TMPDIR/foo.$$ > cat

Re: environment variables derived from TMPDIR

2008-08-05 Thread Ralf Fassel
* 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.

Re: environment variables derived from TMPDIR

2008-08-05 Thread Ralf Fassel
* 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 < "$TMPFI

Re: environment variables derived from TMPDIR

2008-08-05 Thread Eric Blake
-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 ins

environment variables derived from TMPDIR

2008-08-05 Thread Ralf Fassel
In a SHELL script I prepare a temp file to pass to some non-cygwin program: # TMPDIR is set to c:/temp outside of cygwin # which translates to /cygdrive/c/temp inside cygwin # prepare input TMPFILE=$TMPDIR/foo.$$ cat > "$TMPFILE" <<\EOF some stuff EOF # call program