delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/20/11:16:13

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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: Mon, 20 Dec 2004 11:15:50 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Chuck <skilover AT softhome DOT net>
cc: cygwin AT cygwin DOT com
Subject: Re: Piping output from sqlplus
In-Reply-To: <cq6phv$jfb$1@sea.gmane.org>
Message-ID: <Pine.GSO.4.61.0412201048420.28221@slinky.cs.nyu.edu>
References: <407DF7D68DD30440B5CEB70ED234D1CF053F6C6F AT excuswa100 DOT americas DOT unity> <cq6phv$jfb$1 AT sea DOT gmane DOT org>
MIME-Version: 1.0

On Mon, 20 Dec 2004, Chuck wrote:

> Bakken, Luke wrote:
> > > I need a korn shell that will handle the windows-like path names
> > > (pdksh),  and where "read" executes in the same shell that called it
> > > (ksh '93).
> >
> > Keep wishing. There are other ways of doing what you need to do with
> > sqlplus without using a pipe and read.
>
> I have dozen's of ksh scripts already written and running on other
> platforms. I'm not going to change them all just to accomodate a
> weakness in Cygwin, or more precisely pdksh.

Cygwin isn't the only platform where ksh is pdksh.  You can't change all
the platforms.  If you want your scripts to be truly portable, you should
try to accomodate the idiosyncracies of each platform.  As mentioned
above, it's rather easy to change the scripts so that they work on all
platforms (including Cygwin).  You can also test whether your construct
works, and if it doesn't, have a bit of pdksh-specific code.

Basically (again, as others mentioned), Cygwin's main ksh will stay pdksh
unless someone (i.e., you) packages and offers to maintain the "real" ksh.
If you decide to do this[*], please review the packaging instructions at
<http://cygwin.com/setup.html>, and good luck.  It might also help to
review the prior discussions on the issue (search the cygwin-apps archives
for ksh93).
	Igor
[*] You'll also need to coordinate with the pdksh maintainer (me)
regarding the naming of executables and symlink policies.  Such
coordination usually happens on the cygwin-apps mailing list (which all
maintainers have to read).  When you ITP the package, this will come up.
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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