delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/12/04/15:06:16

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:content-type
:content-transfer-encoding:mime-version; q=dns; s=default; b=hwS
GsdDwRMV/nyneA00Xj9mSRYjH8phaDN2bD7OdnyiPjQU6K7lzQGrShSACVNCCh1R
m/N6dPFBGJskQASgHbBMVxUPCAVRU0DTtv5X9CS2nxmLtAQXm10dycyTG5xm1OBM
9/oxG2fztjhD/QF/OG67ApqW9lSCMIn9D+XML/sY=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:content-type
:content-transfer-encoding:mime-version; s=default; bh=YK3Tw56cv
jZ6zl2LaqYuo87Wp2M=; b=ej3ulcoUz3Yp9llwjtVDGiRTPSJZ0yy1ufGRUzHZ3
Hb3opBHWuBerPYOPT98nrZIP6MV2w9Re88Rq4gVDprEVWkiqtgTAaNKqJmRKf3bC
UKjpS3mxB9jEIV8bJ+MJIsasAeBQtddhMgoH04pByHoTGPwN79l44mM1B4b/BuQ1
uI=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=AWL,BAYES_50,MIME_BASE64_BLANKS,RDNS_NONE,URIBL_BLOCKED autolearn=no version=3.3.2
X-HELO: nbfkord-smmo07.seg.att.com
X-MXL-Hash: 529f8b1a2a60f097-8de06553d4671242f52ff3c631a89b94a9a73cf4
From: "PRIKHODKO, GEORGE" <gp1865 AT att DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: Problem with command substitution in mksh shell after upgrading to Cygwin 1.7.26
Date: Wed, 4 Dec 2013 20:05:16 +0000
Message-ID: <397AD605DAD9254D9D2FFE207111E6442B060A47@MOKSCY3MSGUSR9D.ITServices.sbc.com>
MIME-Version: 1.0
X-RSA-Inspected: yes
X-RSA-Classifications: public
X-Spam: [F=0.2000000000; CM=0.500; S=0.200(2010122901)]
X-MAIL-FROM: <gp1865 AT att DOT com>
X-AnalysisOut: [v=2.0 cv=FpuyCRXq c=1 sm=0 a=dhB6nF3YHL5t/Ixux6cINA==:17 a]
X-AnalysisOut: [=2scTS13Q9wwA:10 a=ofMgfj31e3cA:10 a=iBkrNkPQP04A:10 a=BLc]
X-AnalysisOut: [eEmwcHowA:10 a=IkcTkHD0fZMA:10 a=zQP7CpKOAAAA:8 a=XIqpo32R]
X-AnalysisOut: [AAAA:8 a=AzyLuSDzG2IA:10 a=w_pzkKWiAAAA:8 a=xk_-yZsr2yvMum]
X-AnalysisOut: [KdxXwA:9 a=QEXdDO2ut3YA:10 a=5omMuWQVYXLV9CwS:21 a=10-Y3Bs]
X-AnalysisOut: [t1qSUgIpR:21]
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id rB4K6DGP005066

Hi,

The fix did help. Thank you.

Thanks,
George 

> -----Original Message-----
> Of Corinna Vinschen
> Sent: Wednesday, December 04, 2013 6:17 AM
> Subject: Re: Problem with command substitution in mksh shell after upgrading to
> Cygwin 1.7.26
> 
> On Dec  4 10:13, Corinna Vinschen wrote:
> > On Dec  4 03:22, PRIKHODKO, GEORGE wrote:
> > > Hi,
> > >
> > > After upgrading to Cygwin to 1.7.26 the commands:
> > >
> > > print $(getIP)
> > > print $(ipconfig | grep "IPv4 Address" | sort | head -1 | cut -d ":" -f 2 \
> > >     | sed -e "s/ *\\([0-9.]*\\).*/\\1/")
> > >
> > > in the following script
> > >
> > > #!/usr/bin/ksh
> > >
> > > cv=$(uname -r)
> > > cv=${cv%\(*}
> > > cygcheck -s -v -r > cygcheck_$cv.out
> > >
> > > exec > test_$cv.log 2>&1
> > > set -xv
> > >
> > > getIP() {
> > >     ipconfig | grep "IPv4 Address" | sort | head -1 | cut -d ":" -f 2 \
> > >         | sed -e "s/ *\\([0-9.]*\\).*/\\1/"
> > > }
> > > #
> > > # the following four commands should print IP address 4 times
> > > #
> > > getIP
> > >
> > > print $(getIP)
> > >
> > > ipconfig | grep "IPv4 Address" | sort | head -1 | cut -d ":" -f 2 \
> > >     | sed -e "s/ *\\([0-9.]*\\).*/\\1/"
> > >
> > > print $(ipconfig | grep "IPv4 Address" | sort | head -1 | cut -d ":" -f 2 \
> > >     | sed -e "s/ *\\([0-9.]*\\).*/\\1/")
> > >
> > > exit
> > >
> > > started to produce incorrect results.
> > > test_1.7.26.log shows instead of IP address a whole output of ipconfig is
> printed for these lines.
> > >
> > > /usr/bin/ksh, used in the script, is a symbolic link to /usr/bin/mksh
> > >
> > > Please, let me know if you need more info to research the problem.
> >
> > No, thank you.  I could track down the culprit of the problem.
> > I don't have a fix yet, but it will be fixed in 1.7.27, which
> > will be due really soon.
> 
> The fix was already in CVS.  Please try the latest snapshot from
> http://cygwin.com/snapshots/, it should already contain the patch.
> 
> 
> Thanks,
> Corinna
> 
> --
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Maintainer                 cygwin AT cygwin DOT com
> Red Hat

- Raw text -


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