delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/10/12:41:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-BigFish: VP
Date: Fri, 10 Sep 2004 10:40:55 -0600
From: Isaac Foraker <isaac DOT foraker AT xilinx DOT com>
Subject: Re: TCSH 6.13 shell script can't re-write to a file
In-reply-to: <D95313D68743304EA8BD26E7B44ACF8E15CE1B@xmb04crdge.crd.ge.com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Message-id: <4141D917.8070306@xilinx.com>
Organization: Xilinx, Inc.
MIME-version: 1.0
User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)
References: <D95313D68743304EA8BD26E7B44ACF8E15CE1B AT xmb04crdge DOT crd DOT ge DOT com>
X-IsSubscribed: yes

I just tried this and had the same problem:

 > echo "Hello" > Stuff
 > rm -f Stuff
 > echo "Goodbye" > Stuff
Stuff: Permission denied.
 > ls -l Stuff
ls: Stuff: No such file or directory
 > tcsh --version
tcsh 6.13.00 (Astron) 2004-05-19 (i386-intel-posix) options 
8b,nls,dl,al,kan,rh,color,dspm
 > uname -a
CYGWIN_NT-5.1 xcoisaacf20 1.5.11(0.116/4/2) 2004-09-04 23:17 i686 
unknown unknown Cygwin

IF

Myers, Paul R (Research) wrote:

>I have a number of CSH/TCSH shell scripts that work with text files.
>In several cases I want to remove/erase a file before I start writing to it
>again. 
>
>I simplified the problem to this example:
>  #!/usr/bin/tcsh
>
>  echo "Hello" > stuff
>  rm -f stuff  
>  echo "Goodbye" > stuff
>
>After a recent tcsh upgrade (from 6.12.00-7 to 6.13.00-2), the 2nd echo
>command will produce the following error:
>stuff:  permission denied
>
>The problem doesn't appear when run line-by-line from the command line, and
>it doesn't appear when in a bash script.
>
>Can anyone else verify this behavior?  
>It seems like a windows sharing violation, does that make sense?
>
>
>Thanks for your help,
>
>Paul
>
>
> <<cygcheck_new.out>> 
>  
>


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019