delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/23/23:17:59

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 23 Aug 2000 23:19:24 -0400
From: Jason Tishler <Jason DOT Tishler AT dothill DOT com>
To: Cygwin <cygwin AT sources DOT redhat DOT com>
Subject: autoheader (mv/exec) problem
Message-ID: <20000823231923.A16518@OLMY>
Mime-Version: 1.0
User-Agent: Mutt/1.2.4i
Organization: Dot Hill Systems Corp.

--v8FaLoBmnU9yDA5+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

When running autoheader, I kept getting error messages like the
following:

    mv: cannot move `autoh16138' to `config.h.in': Permission denied

But after autoheader exited, I could successfully execute:

    mv autoh16138 config.h.in

without any problems.

By reading the (shell script) source to autoheader, I determined that
the problem has to do with trying to move a file when it is still open
-- which is no surprise since Cygwin is sitting on top of Windows...

The attached shell script exhibits the above problem on Cygwin but works
on Linux.  I'm not sure if this one is fixable...

Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corporation         Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason DOT Tishler AT dothill DOT com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

--v8FaLoBmnU9yDA5+
Content-Type: application/x-sh
Content-Disposition: attachment; filename="j.sh"

#!/bin/sh

exec >foo
echo hi

mv -f foo bar


--v8FaLoBmnU9yDA5+
Content-Type: text/plain; charset=us-ascii

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
--v8FaLoBmnU9yDA5+--

- Raw text -


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