Unexpanded command lines

utzoo!decvax!pur-ee!pur-phy!crl utzoo!decvax!pur-ee!pur-phy!crl
Wed Nov 18 10:21:50 AEST 1981


I just thought I'd mention that there already exists in csh a mechanism
to force the shell not to expand filenames.  It is invoked by setting
the variable "noglob". Thus, if you want to be crude about it, you could
say, for example, in your .login: 
	alias finger 'set noglob; /usr/bin/finger \!* ; unset noglob;'
and then finger would get unexpanded command lines.  However, this does
mean that you'd have to alias every one that way, and if you interrupted,
noglob would remain set, but the point is that there is a way to do it now.
An idea to consider would be to modify csh such that noglob can take a 
vector of strings, and if the first word of the command matches one of them,
then filename expansion would be inhibited.  Thus this exception to 
expansion rules in the shell would be in effect only for those who actively
desire it.

C. LaBrec



More information about the Comp.unix.wizards mailing list