This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: > redirection with Cygwin 1.1.4
- To: cygwin at sourceware dot cygnus dot com
- Subject: Re: > redirection with Cygwin 1.1.4
- From: Chris Faylor <cgf at cygnus dot com>
- Date: Thu, 14 Sep 2000 21:21:51 -0400
- References: <39C17710.3E772C9F@openmarket.com>
- Reply-To: cygwin at sources dot redhat dot com
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