This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Using 'test' fails when referencing home '~' from bash loop
- From: "Matt D." <matt at codespunk dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 10 Jun 2013 20:13:14 -0400
- 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