delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/06/10/20:13:38

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: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 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
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 AT codespunk DOT 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 AT cygwin DOT com
Subject: Using 'test' fails when referencing home '~' from bash loop

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

- Raw text -


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