Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site nitrex.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!cwruecmp!nitrex!rob From: rob@nitrex.UUCP (rob robertson) Newsgroups: net.unix,net.unix-wizards Subject: Re: Bourne shell modifications, past and future (long) Message-ID: <161@nitrex.UUCP> Date: Sat, 23-Nov-85 23:22:45 EST Article-I.D.: nitrex.161 Posted: Sat Nov 23 23:22:45 1985 Date-Received: Mon, 25-Nov-85 07:18:13 EST References: <1943@gatech.CSNET> <10@druri.UUCP> <21@pixdoc.UUCP> <3@bbncc5.UUCP> Reply-To: rob@nitrex.UUCP (rob robertson) Organization: The Standard Oil Co., Cleveland Lines: 20 Xref: watmath net.unix:6358 net.unix-wizards:15845 Summary: w/.cshrc Berk aliases stick around--SYSV don't > I think the most glaring difference between csh aliasing and > sys5 bourne shell functions is that the latter looks up builtins first. > This means you can't define functions that clash with shell commands. > On the other hand shell functions have a MUCH better syntax. Why not > move up the expansion of shell functions ahead of builtins at > the expense of not having recursive functions. My main problem with SysV's version of Bourne Shell is that functions don't stick around in a new invocation of the shell. In Berkley a .cshrc is executed when ever a new shell is involked keeping the alias around. Korn shell fixed that by providing an enviornment variable, ENV which contains the name of a file to be executed whenever a new shell is involked. Also in Korn shell, he provides BOTH aliasing and functions. Aliasing is faster, but functions are more complex. -- rob robertson decvax!cwruecmp!nitrex!rob.UUCP (216) 791-0922 cbosgd!nitrex!rob.UUCP nitrex!rob@case.CSNET nitrex!rob%case@csnet-relay.ARPA