X-Recipient: archive-cygwin@delorie.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=Jkz
	fJRO99x2gQjVgf+4oF+wSL/f29+Icd1jG3QEB2zGbi/EWX5/TX9o6RxpWVnMwA7W
	X1/4rrjCUx5+UwRf5U69Lxfo/GYog21zw643hB0Yz+zVvQDUfYBS7VNB5LEV/lBT
	hm4OnWmQ0f/doPb5MoRyt/VnlgpuuhbOysheAsLU=
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=9aouWWkZO
	aY6rMWzdkkTm3zy6Yw=; b=X/6c0h7gUe3ALHuiKegaxICbOVag+/mk1wGi1TetF
	rlNXrWP2SbNJIb+O+q8xUAxiGoJKIzlNuxN4o9Uhgh0IE4VWkxat/0No+/3oLnX1
	xTMdeUWoYIYksPdxNqXtBIApeOYvLjyag+2tW9AYuy7m4cE0LKSO133u4Ybb+Vhf
	3o=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_40,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: nihxway4out.hub.nih.gov
X-IronPortListener: Outbound_SMTP
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AgkFAC4PsVKcKEem/2dsb2JhbABZgwqBDaZwkXyBHxZ0gicBBBIoUQEVFRQvEyYBBBsah2KhUoRwow4XjmGDW4ETBI5YkCqLKIMrgio
From: "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder@niaid.nih.gov>
To: "'cygwin@cygwin.com'" <cygwin@cygwin.com>
Subject: Change in behavior of bash / if [
Date: Wed, 18 Dec 2013 03:02:53 +0000
Message-ID: <6CF2FC1279D0844C9357664DC5A08BA21F8C0A@MLBXV06.nih.gov>
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id rBI33Aij026038

Today, a script that I use every day stated giving me the following
error message.  (I grant that it might have started earlier and I
didn't notice.)  Note that although it gave the error message, the
script seems to still have worked.

./lddir: line 77: [: too many arguments

Line 77 was as follows.  I'm testing whether $1 is "clip".

if [ x$1 = xclip ]

I fixed it with this.

if [ "x$1" = xclip ]

32-bit, everything was up to date.

I've solved my problem, but the change was unexpected and, for me,
inexplicable, so I thought that I'd report it.

Let me know if you want/need more information.

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.


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


