delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/30/15:08:41

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
Message-Id: <3.0.6.32.20020730115710.00a6bcb0@phoenix.projtech.com>
X-Sender: pablo AT phoenix DOT projtech DOT com
Date: Tue, 30 Jul 2002 11:57:10
To: Michael A Chase <mchase AT ix DOT netcom DOT com>, cygwin AT cygwin DOT com
From: Paul Coltrin <pablo AT projtech DOT com>
Subject: Re: Cygwin and ATT ksh, specific example
In-Reply-To: <Mahogany-0.64.2-2300-20020730-103905.00@MCHASE-COMPAQ>
References: <3 DOT 0 DOT 6 DOT 32 DOT 20020729144758 DOT 00aa3100 AT phoenix DOT projtech DOT com>
<3 DOT 0 DOT 6 DOT 32 DOT 20020729144758 DOT 00aa3100 AT phoenix DOT projtech DOT com>
Mime-Version: 1.0

Mac,

Thanks for the reply.

I need to port existing scripts written for MKS ksh.  The goal is
to modify them so they will work on either MKS or Cygwin and thus
if possible avoid creating another source tree that would have to
be versioned and tracked, etc.

And so even just changing #!/bin/ksh to #!/bin/bash would be problematic.

Likewise, because they are existing scripts, rife with ksh-isms,
detuning them to sh is not an attractive option either.

Paul

At 10:39 AM 7/30/02 -0700, Michael A Chase wrote:
>On Mon, 29 Jul 2002 14:47:58 Paul Coltrin <pablo AT projtech DOT com> wrote:
>
>> I have been working to port scripts from MKS ksh to ATT ksh on Cygwin.
>> Here is a specific example of a problem I have run into.  When I try to
>> execute an NT command script from ATTksh I get a permission error.  For
>> example:
>> 
>> $ksh
>> $ ./gen_file.cmd 
>> ksh: ./pt_gen_file.cmd: cannot execute [Permission denied]
>> 
>> However, I can run it just fine from Cygwin-bash and MKSksh.
>> 
>> Any suggestions, please?
>
>Use bash?
>
>ATT ksh is practically another environment all to itself.  It is nice of
>the ksh group to try to create a version that will work with Cygwin, but
>bash will probably always be better integrated with Cygwin and its view of
>MS Windows.
>
>I normally use the Bourne shell subset when I code shell scripts just to
>avoid portablility problems even when I expect to use ksh or bash to run
>them.
>
>-- 
>Mac :})
>** I normally forward private questions to the appropriate mail list. **
>Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
>Give a hobbit a fish and he eats fish for a day.
>Give a hobbit a ring and he eats fish for an age.
>
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/
>



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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