delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/11/09/08:51:41

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <199911091350.NAA00636@uksn71>
Date: 09 Nov 1999 13:44:00 +0000
From: "Clive Bostock" <CBOSTOCK AT UK DOT oracle DOT com>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: getopts problem
MIME-Version: 1.0
X-Mailer: Oracle InterOffice (version 4.2.1.3.1)
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id IAA02617

Hi, I've recently been developing a shell script using B19
of CYGWIN. I hit a problem with awk and so upgraded to B20.
This fixed the awk problem. However I now find that unless 
the 1st line of the shell script has the #!path_to_bash/bash 
included, bash errors with "getopts not found".

This is inconvenient as it restricts portability of the 
shell script.

I'm running under NT4. The problem is easy to produce, just
create a one line script with:

   getopts  abc:

Run the file and get the error. Then add the #!.. line and
bingo!

Thanks for taking time to read this.

PS Cygwin is pretty cool.

Regards,

Clive.
_______________________________________________________________
 
 Clive   Bostock                    Oracle Corporation(UK) Ltd. 
 Senior  Support Consultant         Premium Support Group	
 E-mail: cbostock AT uk DOT oracle DOT com     The Ring 
 Phone:  01344 - 787464             Bracknell 
 Mobile: 0385 908328                RG12 1BW 
_______________________________________________________________

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019