If I want to check for the existence of a single file, I can test for it using test -e filename or [ -e filename ].
test -e filename
[ -e filename ]
Supposing I have a glob
I have yet another solution:
if [ "$(echo glob*)" != 'glob*' ]
This works nicely for me. Are there some corner cases I miss?