Text File

Apur-phy.156 fa.unix-wizards utzoo!decvax!pur-ee!pur-phy!crl Wed Nov 18 10:21:50 1981 Unexpanded command lines 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

----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen <jgoerzen@complete.org> of http://communication.ucsd.edu/A-News/

This Usenet Oldnews Archive article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.

2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.