"… it will expand to nothing" – It depends. The POSIX behavior is to leave the wildcard as is. There are options in various shells so you can get nothing or an error.
↧