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=Bcp pxpuYmGfeFdIOBRkL6T0JbDvHF5UljqNrWV+qpCO7lSRz1vW+vqzQyxGM67pEfAc rchIoatobP5XnYd/o7QeeLC7OLh0QJhPzqXJ5uwyEJOqMynwoChfyptr4xsPmA7Z pRScMcUHemcqVnfzZpTH0yabSLpvSgYz02/KjrDM= 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=XBGMxbbXo ngbheDAE97ASA/rx78=; b=qNQ+/OzZFgkoW2kUlOyItqDY7m1ATaFVnNsBuQbEz yMIjEzZlNXcEBQtOMtCdZXeE1UIf2RmJZgorjftFJp0CV9lrCb7UCaAt0xbxU1lw 1B1KvBjW6oI+p+sHrFXgIYE32/VlQUvrV3zStalerdvaFGI85BBihhv9Nwp6VJ+V 4E= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=unavailable version=3.3.2 spammy=A, Hx-languages-length:357, a X-HELO: NAM03-CO1-obe.outbound.protection.outlook.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flightsafety.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pRUaZXhZVjcr6wPj0FsitTZUtdyEWYtY0DWp0BFTTZc=; b=RuhR7aSoIZm7Fi07Z2kEitBy/5V+deNTD1nUtDhUj5RTJVdV2dg31LpBnReWrTzMwD+Huo7KnTqBbF+F51zFnxsyAejz4C7Clcui9e//gtFsGKPc/SmWeNEUiNIH3FSDP0uIyfSONRXLpNKJPnEDzUWHuUMqX4h4AAPWPTjkGK4= Authentication-Results: spf=pass (sender IP is 66.109.88.133) smtp.mailfrom=flightsafety.com; cygwin.com; dkim=none (message not signed) header.d=none;cygwin.com; dmarc=pass action=none header.from=flightsafety.com; Received-SPF: Pass (protection.outlook.com: domain of flightsafety.com designates 66.109.88.133 as permitted sender) receiver=protection.outlook.com; client-ip=66.109.88.133; helo=p0001ws0011.flightsafety.com; From: "Rockefeller, Harry" To: "cygwin AT cygwin DOT com" Subject: bash string-operator problem Date: Thu, 21 Feb 2019 16:00:11 +0000 Message-ID: Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-MS-Exchange-SenderADCheck: 1 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x1LG1Gne008167 CYGWIN_NT-6.1 HARRYR-PC 3.0.0(0.336/5/3) 2019-02-16 13:21 x86_64 Cygwin GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin) #!/bin/bash A="A" B="A" if [ $A!=$B ]; then echo -e "not identical" fi if [ $A==$B ]; then echo -e "identical" fi exit 0 Running this script gives not identical identical Both tests are true. -- 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