Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: Chris Faylor <cgf@cygnus.com>
Date: Thu, 14 Sep 2000 21:21:51 -0400
To: cygwin@sourceware.cygnus.com
Subject: Re: > redirection with Cygwin 1.1.4
Message-ID: <20000914212151.A28581@cygnus.com>
Reply-To: cygwin@sources.redhat.com
Mail-Followup-To: cygwin@sourceware.cygnus.com
References: <39C17710.3E772C9F@openmarket.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@sourceware.cygnus.com

