Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!seismo!mimsy!chris From: chris@mimsy.UUCP Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: Prompt changing on the fly - Oops Message-ID: <5108@mimsy.UUCP> Date: Mon, 19-Jan-87 00:40:14 EST Article-I.D.: mimsy.5108 Posted: Mon Jan 19 00:40:14 1987 Date-Received: Mon, 19-Jan-87 06:30:02 EST References: <432@ethz.UUCP> <374@danews.ATT.COM> <376@danews.ATT.COM> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 22 Keywords: prompt Xref: watmath comp.unix.questions:687 comp.unix.wizards:620 In article <376@danews.ATT.COM> lvc@danews.ATT.COM (Larry Cipriani) writes: >>Impossible in the Bourne shell. I don't know about the C-shell. [also Larry] >Later that same day: > >Oops, it is possible in the Bourne shell. What you can do >is define a function (not well known in the Bourne shell) >to do your cd's and set PS1. Not all Bourne shells are bourne equal. (Sorry) *If* your Bourne shell has shell functions, yes; if not, you are also correct. How can you tell whether your Bourne shell has shell functions? Try Larry's example chdir(). If sh says syntax error: `(' unexpected it does not have shell functions. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690) UUCP: seismo!mimsy!chris ARPA/CSNet: chris@mimsy.umd.edu