home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!gossip.pyramid.com!pyramid!infmx!hartman
- From: hartman@informix.com (Robert Hartman)
- Newsgroups: comp.unix.shell
- Subject: Re: Does C-shell have subroutine capability
- Message-ID: <1992Nov20.184756.9138@informix.com>
- Date: 20 Nov 92 18:47:56 GMT
- References: <1992Nov14.195151.15122@cbis.ece.drexel.edu> <1992Nov20.050115.13999@tellab5.tellabs.com>
- Sender: news@informix.com (Usenet News)
- Organization: Informix Software, Inc.
- Lines: 20
-
- In article <1992Nov20.050115.13999@tellab5.tellabs.com> seong@tellabs.com (Scott Seong) writes:
- >--
- >With C-shell, writing a 'subroutine' is impossible. If you are running
- >Ultrix 4.2, go with ksh. It's not that different from csh.
-
- Well, it's not exactly "impossible," but it is a little wierd:
-
-
- % alias foo 'source foo'
- % cat > foo
- echo I got sourced in!
- ^D
- % foo
- I got sourced in!
-
- After using both shells, I like ksh a little better. The only gripe
- I have with ksh is that I haven't been able to figure out how to
- list the definition of an individual shell function. Any tips?
-
- -r
-