home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!nigel.msen.com!hela.iti.org!cs.widener.edu!eff!news.oc.com!utacfd.uta.edu!trsvax!trsvax!tisdec.tis.tandy.com!kevinl
- From: kevinl@tisdec.tis.tandy.com
- Newsgroups: comp.unix.shell
- Subject: Re: How to do csh-like alias in ksh?
- Message-ID: <28300010@tisdec.tis.tandy.com>
- Date: 28 Dec 92 14:45:00 GMT
- References: <8880@microsoft.com>
- Lines: 13
- Nf-ID: #R:microsoft.com:8880:tisdec.tis.tandy.com:28300010:000:304
- Nf-From: tisdec.tis.tandy.com!kevinl Dec 28 08:45:00 1992
-
-
- You need to use a ksh function. Something like this:
-
- function ff {
- find . -name $1 -print
- }
-
- It works just like an alias, but has shell script syntax.
-
- Hope this helps.
- --
- Kevin K. Lewis | My opinions may be unreasonable
- kevinl@tisdec.tis.tandy.com| but such is the voice of inspiration
-