delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/12/04/07:17:45

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=dvcHQr5KhscMDNKXSNnNkJchEzbDMIxQqDRmvnuHvJBRi1ZxeKg/I
TexkJLVmcXUG+Bbbxj51kKu5WrLroYYuDHEBs4zxMMIV9+K02ClIfbMkyqpZ2x5m
3JFO0EmnR3zOY/YwTPUAcIrL4sTpAvejXIQjxyjV2Bd43lheiL5iJU=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=p4x9vc2/WiaGSpuozLNxKZCbvmg=; b=Vil4mfev2elmSQXZRCCNadwiEPTZ
T54WmBP6kVGONzPndm/X9bLmo2QJmL+niR3Gi8GChdxqXdBgWrssiur2cXYX3X6n
ihIaeQPCvhdATlMm0IE1VjyLjELZ2/Y7N5L9gPak7GbdFwDLrmd71BGGdbIvJDTW
4ykU8hPCnBj72s4=
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.5 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,URIBL_BLOCKED autolearn=no version=3.3.2
X-HELO: calimero.vinschen.de
Date: Wed, 4 Dec 2013 13:17:05 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Problem with command substitution in mksh shell after upgrading to Cygwin 1.7.26
Message-ID: <20131204121705.GC8139@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <397AD605DAD9254D9D2FFE207111E6442B05FF04 AT MOKSCY3MSGUSR9D DOT ITServices DOT sbc DOT com> <20131204091348 DOT GA29444 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <20131204091348.GA29444@calimero.vinschen.de>
User-Agent: Mutt/1.5.21 (2010-09-15)

--UPT3ojh+0CqEDtpF
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Dec  4 10:13, Corinna Vinschen wrote:
> On Dec  4 03:22, PRIKHODKO, GEORGE wrote:
> > Hi,
> >=20
> > After upgrading to Cygwin to 1.7.26 the commands:
> >=20
> > print $(getIP)
> > print $(ipconfig | grep "IPv4 Address" | sort | head -1 | cut -d ":" -f=
 2 \
> >     | sed -e "s/ *\\([0-9.]*\\).*/\\1/")
> >=20
> > in the following script
> >=20
> > #!/usr/bin/ksh
> >=20
> > cv=3D$(uname -r)
> > cv=3D${cv%\(*}
> > cygcheck -s -v -r > cygcheck_$cv.out
> >=20
> > exec > test_$cv.log 2>&1
> > set -xv
> >=20
> > getIP() {
> >     ipconfig | grep "IPv4 Address" | sort | head -1 | cut -d ":" -f 2 \
> >         | sed -e "s/ *\\([0-9.]*\\).*/\\1/"=20
> > }
> > #
> > # the following four commands should print IP address 4 times
> > #
> > getIP
> >=20
> > print $(getIP)
> >=20
> > ipconfig | grep "IPv4 Address" | sort | head -1 | cut -d ":" -f 2 \
> >     | sed -e "s/ *\\([0-9.]*\\).*/\\1/"
> >=20
> > print $(ipconfig | grep "IPv4 Address" | sort | head -1 | cut -d ":" -f=
 2 \
> >     | sed -e "s/ *\\([0-9.]*\\).*/\\1/")
> >=20
> > exit
> >=20
> > 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.
> >=20
> > /usr/bin/ksh, used in the script, is a symbolic link to /usr/bin/mksh
> >=20
> > Please, let me know if you need more info to research the problem.
>=20
> 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

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--UPT3ojh+0CqEDtpF
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)

iQIcBAEBAgAGBQJSnx1BAAoJEPU2Bp2uRE+gFxAP/j8XBU6MHny4SD4c3a9CEOvO
wIS28vCQJ2rZeJKEBindsJYU7kS0W7O5/MsNnWAGF7SGabZDBoOdeu5fXRw1fjEd
q5jt5uAuOLPmLzwmjrdrMSM77h1xVoNNFnpbLB5mO7qpJ4bU2U8apzosR+UQC9Ve
DipmS+7s9+3oDaRRkMGGo1RLaMnSKpal6WpQGG/lizV4pk5QzTxEbhkwWu23BfU0
Ja3dY4lkB9Yolahz/dCG4JpQ2x4WJ6QKSTpA+RMUhkwMZ2NfvS9GsRrvy+Xcnid7
q3jBLH7kOfJqp1vsfeeyfJOH6gNXwFHTYFaqcDA/42mX1y9RFbmhFlPsWpDSJqrK
5TxpI13NnFvseuoSdwMZnjNgg/uAXPRl1aMZ1MpbeEqKhMcSe7TUlEixeE80tYsc
8k3f1CMttuUgpfRM6psMP0jnfknJbtL+VnN/0C7rmLfZdOiU6WUczNH1D1nRJH5x
pyO8NrsZGjit/foNx8WjSO5HtHfqGYv0Xr3qpc1kbQUj7NydFSxLnkE1OdJ4LlgQ
WgXMtLPvjWeWuFMfJtifM99SH8QCUO2kcw5IanrZhE4FXSZA8OxiiS1BF/JdB1G8
aH8xfUN9QZswWQwbA6l+wYjDUduMMKs6+J1DofTqeAQ5uafpoYJpqVmZZbq9bU/l
QLibxQonluIkoHiGq51N
=1s7S
-----END PGP SIGNATURE-----

--UPT3ojh+0CqEDtpF--

- Raw text -


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