The "*" character (was: Latex )
Mark Phillips writes:
> >It would be helpful if you could tell us what version of the packages
> >you have installed. For example, if you would run this commands:
> >
> > 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?
It differs from shell to shell and even within a given shell:
marin215# tcsh
# echo *tex*
echo: No match.
# set nonomatch
# echo *tex*
*tex*
#
In csh, having nonomatch set asks the shell not to say it can't do a
wildcard expansion but rather to pass the argument (as if it was
quoted, then) to the command.
The surest way to get consistent results is to quote ;-)
Yves.
Reply to: