delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/07/28/09:16:21

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=Wl5JYL5RrJB/e095
0mPJuAOdMZba7y0lXEYcFFf1em6U5seKWqJJWmYraINhJnkkDFdYYlSTpLAxK8Vm
J849S3GDqfzjjZpf9UudGBXQ+miU2St7bHFDWFoFC4NsXnbFxBVfQm2ekrwj930I
lnv1WB3A97tqelCLCY3r9Vg9w0E=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=HKzEwmQHnVUcMbL8jcPAf4
GcyNg=; b=eM9j+4CXAXbHIRG/Lvxcw1Haa3rsy831jE1d1R1DAwP8YdLa0Tm8x9
k5AtFc/qlpzBFBqueD+jXAOcJbcQ2bWi8YutmCUfcOuFCQwJwqr+NKZorjDYWFQG
A97jCWiqN82PFRbDAYQhVmS/K1G908W0wWn1Zlwosb/lLrKakng0U=
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=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*M:9869, H*M:8125, Hx-languages-length:947, H*M:7a8d
X-HELO: mail-wm0-f51.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=4t2r7phKNloFQ6UsodOnD862z5EMSqVBmdwK/N3/xuE=; b=Ba8N0XxWv1kKi5D//yz+je8uSScnphG+7LxVuk2DaLgyVaH1Mpemk/5Xrg/CehPCf/ FtmH9H4xTJyPVp42P9BGm9gIc6EZhOAmVyTyA+J19ESylJoOlxCq9zMYA+9pjrSTyprf rmBA5ZA9OMnuxl8RXqRvVjuLO9Z7ZpHr70rLa2mXk9ZkZopbJcVzvGLfdonwqrGKBaw3 O6KMiaDXiqJH6pEvqD2+cQFun12Mhkf5kNJ7gcIQclxnRyQW2Eon0UW8QR/vC6WYmXVY xyKhb00PDNRpWzBzUYxvO1C+4FsCN2V/unt/5pvIyt5t/xE8tYKah2Ca4OEYbRiurfzL CyoA==
X-Gm-Message-State: AEkoout3R+YZi/yD+cgFg97tBVI/iQ3OJ952vjo/1IA8kjjLWKap4H6m1H/k1jm9g67Xlg==
X-Received: by 10.194.123.35 with SMTP id lx3mr4193501wjb.126.1469711749795; Thu, 28 Jul 2016 06:15:49 -0700 (PDT)
Subject: Re: <<expr 100 * 100>> returns syntax error
To: cygwin AT cygwin DOT com
References: <51777330c6d999e10af5937cf2e06ea6fe5 AT guerrillamail DOT com>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <221409bc-7a8d-8125-9869-f23d31a60c17@gmail.com>
Date: Thu, 28 Jul 2016 15:15:47 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <51777330c6d999e10af5937cf2e06ea6fe5@guerrillamail.com>
X-IsSubscribed: yes

On 28/07/2016 14:55, 45ownu+e60iporpd8lec AT guerrillamail DOT com wrote:
> Steps to reproduce (I cannot update cygwin on this server, but it also happen on 2.5.2(0.297/5/3)):
> Main window:
>   $ uname -r
>   1.7.25(0.270/5/3)
>   $ expr 100 * 100
>   10000
>
> ---------------
> Other window:
>   $ $ uname -r
>   1.7.25(0.270/5/3)
>   $ HOST=myhostname
>   $ echo 'whatever' > $HOST.txt
>
> ---------------
> Main window:
>   $set -xv
>   $expr 100 * 100
>   + expr 100 myhostname.txt 100
>   syntax error

clearly here you have bash expending the *

you can solve it by escaping the *

$ expr 100 \* 100
10000



> ------------------------------------------------
>
> When this happen I can only fix by rebooting the server, which is obviously unideal!
> Here my questions:
>    1) How can I reset cygwin to the initial behaviour without rebooting?
>    2) why does this happen? how to prevent this?
>
> Thank you :)
> F.


Regards
MArco


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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