This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-67


On Sun, Nov 29, 2009 at 5:41 PM, Angelo Graziosi wrote:
> Ken Brown wrote:
>>
>> I just confirmed this on my XP SP3 system. I initially got similar
>> behavior to what Angelo and Robert reported, but it doesn't happen if I
>> export TMPDIR=/tmp before running patch.
>
> Indeed!
>
> On my system TMPDIR isn't defined by default; instead TMP and TEMP point to
> $USERPROFILE/Temp. Setting TMP or TMPDIR to /tmp, works. Instead pointing
> TEMP to /tmp does not, i.e. 'patch' creates foo.txt with '+'.
>
>
> Ciao,
> Angelo.
>

Yea.  I had noticed that earlier but it didn't really click.  I have
attached a patch.strace file that shows what happens when the patch is
processed.  Looks like it is generating a fake TMP variable based on
the system set TEMP and not the one set in the bashrc.  TMP has
nothing set on it at all.  I only had TEMP defined as /tmp.

Robert Pendell
shinji@elite-systems.org
CAcert Assurer
"A perfect world is one of chaos."

Attachment: patch.strace
Description: Binary data

--
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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]