Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Mon, 24 Feb 2003 19:12:34 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Paul Coltrin cc: cygwin AT cygwin DOT com Subject: Re: Change in command line behavior between cygwin 1.3.18-1 and 1.3.19-1 In-Reply-To: <3.0.6.32.20030224155922.00b16870@phoenix.projtech.com> Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Paul, I was able to reproduce your output on Cygwin 1.3.20. The invokation method (i.e. POSIX vs. mixed path) did not matter, though the DOS line endings did. Try invoking your script as C:/cygtest/testscript 2>&1 | od -c and look at the result - it should be very informative. I got: $ c:/cygwin/tmp/kshtest/testscript 2>&1 | od -c 0000000 c : / c y g w i n / t m p / k s 0000020 h t e s t / t e s t s c r i p t 0000040 [ 2 ] : s e t : - \r : u n 0000060 k n o w n o p t i o n \n 0000075 Also, what does your mount table look like? Do you, by any chance, have a text-type mount for /cygdrive? I'm assuming your pdksh is self-built. Did you link with automode.o? Igor On Mon, 24 Feb 2003, Paul Coltrin wrote: > Elfyn, > > Thanks for the reply. > > Unfortunately, the behavior also exists in 1.3.20. I first found it there > and then worked back to narrow down in which version it appeared. > > In order to see the problem, the script needs to have DOS-style > line endings, and also it must invoked with an MKS-style path, > ie with a Windows style drive letter but with unix forward slashes - > C:/cygtest/testscript . > > (These are both conditions I would like to preserve in order to minimize > porting and maitainability issues.) > > Paul Coltrin > pablo AT projtech DOT com > > At 06:27 PM 2/22/03 -0000, you wrote: > >> I am hoping that someone can explain this change of behavior I have > >> noticed that occurred between Cygwin version 1.3.18-1 and 1.3.19-1. > >> > >> In order to remain compatible with MKS, and also to keep version control > >> as simple as possible we need to continue using ksh to execute our > >scripts. > >> On Cygwin we have been using the pdksh ( > >> http://www.cs.mun.ca/~michael/pdksh/ ). > >> > >> Here is a sample script: > >> --- > >> #!/bin/ksh > >> set +u > >> --- > > > >Hello, I just tried your testscript and it works under 1.3.20 . Perhaps > >upgrading to the latest version of the cygwin1.dll would fix your problem? > > > > > >Regards, > > > >Elfyn McBratney > >elfyn AT exposure DOT org DOT uk > >www.exposure.org.uk -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk! -- /usr/games/fortune -- 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/