Re: bash `test -e' problem with cdrom drive and soft-disk drive

2009-06-08 Thread Corinna Vinschen
On Jun 8 23:19, Haojun Bao wrote: > Corinna Vinschen writes: > > > On Jun 8 22:53, Haojun Bao wrote: > >> > >> If you have cd-rom/soft-disk drive, please run the following test case, > >> > >> for x in {a..z}; do > >> if test -e /cygdrive/$x/Windows ; then > >>echo "Windows f

Re: bash `test -e' problem with cdrom drive and soft-disk drive

2009-06-08 Thread Haojun Bao
Corinna Vinschen writes: > On Jun 8 22:53, Haojun Bao wrote: >> >> If you have cd-rom/soft-disk drive, please run the following test case, >> >> for x in {a..z}; do >> if test -e /cygdrive/$x/Windows ; then >>echo "Windows found on /cygdrive/$x" >>cd /cygdrive/$x >>

Re: bash `test -e' problem with cdrom drive and soft-disk drive

2009-06-08 Thread Haojun Bao
Corinna Vinschen writes: > On Jun 8 22:53, Haojun Bao wrote: >> >> If you have cd-rom/soft-disk drive, please run the following test case, >> >> for x in {a..z}; do >> if test -e /cygdrive/$x/Windows ; then >>echo "Windows found on /cygdrive/$x" >>cd /cygdrive/$x >>

Re: bash `test -e' problem with cdrom drive and soft-disk drive

2009-06-08 Thread Corinna Vinschen
On Jun 8 17:06, Corinna Vinschen wrote: > On Jun 8 22:53, Haojun Bao wrote: > > > > If you have cd-rom/soft-disk drive, please run the following test case, > > > > for x in {a..z}; do > > if test -e /cygdrive/$x/Windows ; then > >echo "Windows found on /cygdrive/$x" > >

Re: bash `test -e' problem with cdrom drive and soft-disk drive

2009-06-08 Thread Corinna Vinschen
On Jun 8 22:53, Haojun Bao wrote: > > If you have cd-rom/soft-disk drive, please run the following test case, > > for x in {a..z}; do > if test -e /cygdrive/$x/Windows ; then >echo "Windows found on /cygdrive/$x" >cd /cygdrive/$x > fi > done > > And here's t

bash `test -e' problem with cdrom drive and soft-disk drive

2009-06-08 Thread Haojun Bao
If you have cd-rom/soft-disk drive, please run the following test case, for x in {a..z}; do if test -e /cygdrive/$x/Windows ; then echo "Windows found on /cygdrive/$x" cd /cygdrive/$x fi done And here's the result: Windows found on /cygdrive/a bash: cd