Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: Chris Faylor Date: Thu, 14 Sep 2000 21:21:51 -0400 To: cygwin AT sourceware DOT cygnus DOT com Subject: Re: > redirection with Cygwin 1.1.4 Message-ID: <20000914212151.A28581@cygnus.com> Reply-To: cygwin AT sources DOT redhat DOT com Mail-Followup-To: cygwin AT sourceware DOT cygnus DOT com References: <39C17710 DOT 3E772C9F AT openmarket DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.6i In-Reply-To: <39C17710.3E772C9F@openmarket.com>; from gmoore@openmarket.com on Thu, Sep 14, 2000 at 09:10:40PM -0400 On Thu, Sep 14, 2000 at 09:10:40PM -0400, Guy T. Moore Jr. wrote: >I have a makefile: > >all: > ./dog.fff >all2: > ./dog.fff > ./dog.out > > >I have a file: >$ cat dog.fff >echo "Hello" > > >$ make -f makefile all >./dog.fff >Hello > > >$ make -f makefile all2 >./dog.fff > ./dog.out >./dog.fff: not found <----- broken. Very strange? >make: *** [all2] Error 127 > > >I can't seem to get the simplest command output to be redirected to a file. Put a '#!/bin/sh' at the top of the file. When you use redirection, you're invoking ash. It looks like ash will not attempt to execute a script unless it has execute permissions. Cygwin will cause a file which has a '#!/bin/sh' to look like it has execute permissions. An alternate solution is to use CYGWIN=ntsec, assuming you're on an ntfs partition. Then you can do "chmod a+x dog.fff". cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com