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:message-id:date:from:mime-version:to:subject
	:content-type:content-transfer-encoding; q=dns; s=default; b=tjv
	uk4nJMgMhW0xvvwcxb0WUqd3lfUdfOe4BBRdzC4xpmGXpBY2xnZ2Pd/pwh/8D1Jf
	v6M/pZeHq+gJTMMtN7dibbtooQaOP397p0ETDvo0aqgLsAkfxbVFiJbSLm5T/xpE
	DB8UCvQezDFe92fo+uoYarIHeg2MZXtD4e6AEvhQ=
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:message-id:date:from:mime-version:to:subject
	:content-type:content-transfer-encoding; s=default; bh=UvLAnfxqb
	b3+S5yrbmSv40OgdKk=; b=bNk1eFtqnm3qpd/3kZqI3hPSgOStNVMvcQ2NUEBt9
	5EpYXYfZvVmm8KxN6x5qVNBlTEw5dCDAHTeAT/G7CG8OG54tVOMHoexyaL7lMUk8
	63/bF2ucUsilW5m20HIt9bMzVzAwLegdGAjQyTqdtnVjhTZh4CT5Hz2GF90Xxp11
	A0=
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
X-Spam-SWARE-Status: No, score=2.1 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE autolearn=ham version=3.3.1
Message-ID: <51B66B9A.6080505@codespunk.com>
Date: Mon, 10 Jun 2013 20:13:14 -0400
From: "Matt D." <matt@codespunk.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Using 'test' fails when referencing home '~' from bash loop
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

The following never exits the loop:

until test -f "~/file.txt"; do sleep 1 && echo sleep; done; echo done

The following does:

until test -f "/cygdrive/d/cygwin-home/file.txt"; do sleep 1 && echo 
sleep; done; echo done

HOME is set and confirmed:
echo $HOME
/cygdrive/d/cygwin-home

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

