Path: utzoo!attcan!sobmips!uunet!cs.utexas.edu!samsung!brutus.cs.uiuc.edu!apple!csibtfr!motcsd!hpda!hpcuhb!hp-ses!hpcc01!hpccc!hpl-opus!steinbac From: steinbac@hpl-opus.HP.COM (Gunter Steinbach) Newsgroups: comp.unix.questions Subject: Re: Alias command Message-ID: <63720013@hpl-opus.HP.COM> Date: 13 Nov 89 18:44:12 GMT References: <29537@iuvax.cs.indiana.edu> Organization: HP Labs, High Speed Electronics Dept., Palo Alto, CA Lines: 14 > / hpl-opus:comp.unix.questions / bwildasi@silver.bacs.indiana.edu (Ben > Wildasin) / 1:03 pm Nov 12, 1989 / > Another question about the alias command: > I would like to modify the rm command so that it first deletes the file, and > then copies it to my nfs directory. In other words, I would like to know > how I can create an alias that can be passed arguments. In ksh, you have to use a "function" instead of an alias if you want to pass arguments to it. RTFM for details. Guenter Steinbach | hplabs!gunter_steinbach | gunter_steinbach@hplabs.hp.com