On Thu, 8 Aug 1996, Mark Phillips wrote: > > dpkg -l *tex* > > I noticed that this doesn't work under tcsh, but does work under > bash. Is there a difference between how the * character is treated > under the two shells?
Yes, there is a difference when the globbing doesn't expand to anything. In this case bash passes the word with the wildcards while tcsh just errors. For example: $ ls $ echo *tex* *tex* $ ./nosuchfile *tex* bash: ./nosuchfile: No such file or directory. $ tcsh > echo *tex* echo: No match. > ./nosuchfile *tex* ./nosuchfile: No match. tcsh is pretty broken to issue make it seem as if commands that don't exist are issuing errors. Guy