Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Sat, 16 Jul 2005 22:09:40 -0400
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: cannot create temp file for here document
Message-ID: <20050717020940.GA20320@trixie.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
References: <071520051616.17192.42D7E14F0006D1840000432822007510900A050E040D0C079D0A@comcast.net> <SERRANOnXuD44kLRMwA000005a0@SERRANO.CAM.ARTIMI.COM> <loom.20050715T191819-539@post.gmane.org> <42D83890.7010908@byu.net> <6.2.0.14.2.20050715182925.03329460@mail.tpsoft.com> <42D907BE.5090003@byu.net> <6.2.0.14.2.20050716111204.0335fa88@mail.tpsoft.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <6.2.0.14.2.20050716111204.0335fa88@mail.tpsoft.com>
User-Agent: Mutt/1.5.8i

On Sat, Jul 16, 2005 at 11:49:46AM -0700, Barry Demchak wrote:
>cd /tmp
>cat >foo
>blah blah blah ^Z
>strace -o strace_unlink.out unlink foo

If you are really typing a CTRL-Z here, then you are suspending the cat
which is creating the foo.  That means that cat would be keeping the foo
open, which means that cygwin would be using "unlink-on-last-close"
semantics.  The UNIX/linux/cygwin method EOF character is CTRL-D.

Otherwise, I can't duplicate this behavior on either XP or W2K on either
a FAT or a FAT32 disk.

>In playing around with this, I'm getting the feeling that cygwin maintains 
>a shadow permission list for each file.

Nope.

My WAG is that you are running some other software running in the
backgroundwhich is interfering with normal windows behavior.

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

