delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/19/23:06:21

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Sat, 19 Jul 2003 20:04:55 -0700 (PDT)
From: "Peter A. Castro" <doctor AT fruitbat DOT org>
To: Samuel Thibault <samuel DOT thibault AT fnac DOT net>
cc: cygwin AT cygwin DOT com
Subject: Re: bash: cat << EOF
In-Reply-To: <20030720012936.GB4144@bouh.unh.edu>
Message-ID: <Pine.LNX.4.53.0307192000150.713@gremlin.fruitbat.org>
References: <20030719013846 DOT GA7108 AT bouh DOT unh DOT edu> <20030719043913 DOT GA15319 AT redhat DOT com>
<20030719063849 DOT GC7108 AT bouh DOT unh DOT edu> <20030719194807 DOT GB1313 AT bouh DOT unh DOT edu>
<20030719203919 DOT GC1313 AT bouh DOT unh DOT edu> <20030719204305 DOT GD1313 AT bouh DOT unh DOT edu>
<Pine DOT LNX DOT 4 DOT 53 DOT 0307191752540 DOT 713 AT gremlin DOT fruitbat DOT org> <20030720012936 DOT GB4144 AT bouh DOT unh DOT edu>
MIME-Version: 1.0
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by delorie.com id h6K36KP27676

On Sat, 19 Jul 2003, Samuel Thibault wrote:

> Le sam 19 jui 2003 17:57:20 GMT, Peter A. Castro a tapoté sur son clavier :
> > On Sat, 19 Jul 2003, Samuel Thibault wrote:
> >
> > > Le sam 19 jui 2003 16:39:19 GMT, Samuel Thibault a tapoté sur son clavier :
> > > > btw, with sh.exe, it works. (but many configure scripts require bash
> > > > _and_ <<)
> > >
> > > and zsh doesn't work, but tcsh works.
> >
> > zsh works for me:
> >
> > (Administrator AT garfunkel)[105] ~ % vi x
> > (Administrator AT garfunkel)[106] ~ % cat x
> > #!/bin/zsh
> > cat << EOF
> > foo
> > EOF
> > (Administrator AT garfunkel)[107] ~ % zsh x
> > foo
> > (Administrator AT garfunkel)[108] ~ % chmod a+rx x
> > (Administrator AT garfunkel)[109] ~ % ./x
> > foo
>
> Neither works for us, typing it at a zsh prompt doesn't either. But we
> are not Administrator, we only have the access to our "Documents and
> Settings", things like c:\temp, and a big samba share.

Just for fun, I also ran this from the Guest account, which has absolutely no
priviledges at all, and it ran without any errors there too.  I've run this
from an NTFS mounted filesystem as well as a FAT filesystem.  The only
thing I haven't tried it using a network user account or a network share.

> > This may be a textmode vs binmode thing?
>
> I tested mounting both in text and binmode, no better.

I think it's time you gave us more information about your machine
configuration.

> Regards,
> Samuel Thibault

-- 
Peter A. Castro <doctor AT fruitbat DOT org> or <Peter DOT Castro AT oracle DOT com>
	"Cats are just autistic Dogs" -- Dr. Tony Attwood

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