Re: Using 'test' fails when referencing home '~' from bash loop

2013-06-10 Thread Linda Walsh
Steven Penny wrote: From: "Matt D." The following never exits the loop: until test -f "~/file.txt"; do sleep 1 && echo sleep; done; echo done This 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 ~

Re: Using 'test' fails when referencing home '~' from bash loop

2013-06-10 Thread Steven Penny
From: "Matt D." > The following never exits the loop: > until test -f "~/file.txt"; do sleep 1 && echo sleep; done; echo done This 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 t

Using 'test' fails when referencing home '~' from bash loop

2013-06-10 Thread Matt D.
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