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] |
Steven Penny wrote:
From: "Matt D."The following never exits the loop: until test -f "~/file.txt"; do sleep 1 && echo sleep; done; echo doneThis is not an error, or even Cygwin related. With Bash you must now quote "~" if you want it to expand.Do this [ -f ~/file.txt ]or this [ -f ~'/file.txt' ] or this [ -f "$HOME/file.txt" ]
--- She can use the format she is using ... just need to stress _not_ to use the quotes... the quotes don't let "~" expansion take place. so: until test -f ~/file.txt ; do sleep 1 && echo sleep; done; echo done works just fine... -- 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] |