Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.unix.questions Subject: Re: Korn Shell Message-ID: <5680@brl-smoke.ARPA> Date: Sat, 14-Mar-87 16:15:02 EST Article-I.D.: brl-smok.5680 Posted: Sat Mar 14 16:15:02 1987 Date-Received: Tue, 17-Mar-87 01:47:09 EST References: <580@csun.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 15 Keywords: Korn shell ksh aliases parameters In article <580@csun.UUCP> aeusesef@csun.UUCP (Sean Eric Fagan) writes: >Yes, that is true. My problem is that I would like to alias cd, which Korn >shell will allow me to do. Apparantly, it looks through aliases first, >built-ins second, functions third, and PATH fourth. I tried making a >function called cd, but it didn't work, and an alias called cd did work, but >I was unable to pass parameters into it. Any one have any suggestions? I don't have much experience with ksh, but I have plenty with the SVR2 shell, which ksh is supposed to be almost entirely upward- compatible with. Indeed, the SVR2 shell provided no way to redefine builtins. We have fixed that in our version, with no apparent ill effects, and use the feature heavily (especially for "cd"). Along the way we added V8's "builtin" and "whatis" builtins. I don't have any patches for ksh, though.