Alias command

Gunter Steinbach steinbac at hpl-opus.HP.COM
Tue Nov 14 05:44:12 AEST 1989


> / hpl-opus:comp.unix.questions / bwildasi at 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 at hplabs.hp.com



More information about the Comp.unix.questions mailing list