Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!crdgw1!crdos1!davidsen From: davidsen@crdos1.crd.ge.COM (Wm E Davidsen Jr) Newsgroups: comp.unix.questions Subject: Re: System V questions Message-ID: <1964@crdos1.crd.ge.COM> Date: 2 Jan 90 14:49:34 GMT References: <21916@adm.BRL.MIL> Organization: GE Corp R&D Center, Schenectady NY Lines: 19 Reply-exos:@crdgw1:To: davidsen@crdos1.crd.ge.com (bill davidsen) In article <21916@adm.BRL.MIL> herman%nrl.decnet@ccf3.nrl.navy.mil (NRL::HERMAN) writes: Answers here apply to Korn shell (ksh) only. | i) How can I get the prompt to show me the current directory. PS1='$PWD> ' ^^^^ Working directory (must be in ', not ") | | ii) Is there something available in System V which is equivalent to the | 'alias' command available in BSD UNIX. That is, can one define | symbols in a way similar to the way #define defines symbols in C. ksh has alias, as well as shell functions -- bill davidsen (davidsen@crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen) "The world is filled with fools. They blindly follow their so-called 'reason' in the face of the church and common sense. Any fool can see that the world is flat!" - anon