Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: PS1 and the bourne shell... Message-ID: <6704@brl-smoke.ARPA> Date: Fri, 20-Nov-87 15:01:36 EST Article-I.D.: brl-smok.6704 Posted: Fri Nov 20 15:01:36 1987 Date-Received: Sun, 22-Nov-87 15:05:26 EST References: <279@caus-dp.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 15 Xref: mnetor comp.unix.questions:5007 comp.unix.wizards:5531 In article <279@caus-dp.UUCP> marcos@caus-dp.UUCP (Marcos R. Della) writes: > cd() > { > builtin cd $* && >... > } "builtin" is not a standard UNIX System V Bourne shell feature. It is found in the 8th and 9th Edition UNIX shells, in the BRL SVR2 Bourne shell, and possibly (I'm not sure) in the Korn shell. In fact, it isn't useful in standard SVR2 Bourne shells, because they don't permit defining functions that have the same name as built-ins. (However, you could define a "ch" function and get used to typing "ch wherever" to change directory.) SVR1, 4.nBSD, and other older shells don't support definition of shell functions at all.