This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]