Path: utzoo!attcan!uunet!portal!atari!achar
From: achar@atari.UUCP (Alan Char)
Newsgroups: comp.unix.wizards
Subject: Re: fixing rm * (was: Worm/Passwords)
Message-ID: <1248@atari.UUCP>
Date: 29 Nov 88 01:32:34 GMT
References: <22401@cornell.UUCP> <4627@rayssd.ray.com> <8563@rpp386.Dallas.TX.US> <125@embossed.UUCP> <672@quintus.UUCP> <1232@atari.UUCP> <812@hadron.UUCP> <727@quintus.UUCP>
Reply-To: achar@atari.UUCP (Alan Char)
Organization: Atari (US) Corporation, Sunnyvale, California
Lines: 21

In article <727@quintus.UUCP> ok@quintus.UUCP (Richard A. O'Keefe) writes:
|In article <812@hadron.UUCP> jsdy@hadron.UUCP (Joseph S. D. Yao) writes:
|[about rm *]
||What I did, a decade ago, was to have a list of _commands_ which the
||shell, after calling glob, would always prompt for after printing out
||the entire expanded command line.  The list included "rm" and "rmdir".
||No prompting if "glob" was not called.
|
|Nice one, but how does this handle user commands with similar properties?
|(For example, "a.rm".)
|One answer, of course, would be to have a
|	GLOBASK=rm:rmdir
|shell variable, so that one could put
|	GLOBASK=a.rm:$GLOBASK
|in ones .profile.  (Did I just make a constructive suggestion?  Oops.)

GLOBASK is not that different from expandcheck.  In fact,
setting GLOBASK= is exactly the same as setting
expandcheck=1 modulo the prompt text.  You mean there isn't
some value I can use for GLOBASK to ask for all commands?  Oh.
--Alan Char