Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!mcnc!ece-csc!ncrcae!ncr-sd!hp-sdd!hplabs!cae780!tektronix!tekcrl!tekgvs!keithe
From: keithe@tekgvs.TEK.COM (Keith Ericson)
Newsgroups: comp.unix.questions
Subject: Re: ksh question
Message-ID: <2450@tekgvs.TEK.COM>
Date: Tue, 14-Jul-87 13:21:07 EDT
Article-I.D.: tekgvs.2450
Posted: Tue Jul 14 13:21:07 1987
Date-Received: Fri, 17-Jul-87 00:45:41 EDT
References: <190@ttrdd.UUCP> <6112@brl-smoke.ARPA>
Reply-To: keithe@tekgvs.UUCP (Keith Ericson)
Distribution: na
Organization: Tektronix, Inc., Beaverton, OR.
Lines: 24
Keywords: noclobber

In article <190@ttrdd.UUCP> mellman@ttrdd.UUCP (Thomas Mellman) writes:
>How do people in the ksh world do without noclobber?
>
Ksh lets me use functions to protect myself (and especially new users
I set up accounts for) with these little goodies:

function rm
{
	/bin/rm -i $@
}
function RM
{
	/bin/rm $@
}

The first "maps" the rm to enforce an interactive mode; the second
(uppercased to simulate shouting it) bypasses the interactive mode.
It's saved me lots of problems...

keith

PS - they're implemented as functions rather than aliases because,
for some reason, I couldn't get aliases to be case sensitive.
Anybody know why?