Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!bionet!ames!amdcad!sun!pitstop!sundc!seismo!uunet!mcvax!hp4nl!philmds!leo From: leo@philmds.UUCP (Leo de Wit) Newsgroups: comp.unix.questions Subject: Re: Bourne Shell Question? Message-ID: <943@philmds.UUCP> Date: 2 Feb 89 11:46:13 GMT References: <8517@dasys1.UUCP> Reply-To: leo@philmds.UUCP (Leo de Wit) Organization: Philips I&E DTS Eindhoven Lines: 19 In article <8517@dasys1.UUCP> dap9702@dasys1.UUCP (Dan Powers) writes: |Hi All, | Does anyone know how to get a prompt in Bourne Shell that contains the |current working directory (pwd). If you can cope with a somewhat wierd syntax, you could do it this way: [/usr/dan] $c bin $d [/usr/dan/bin] The c and d are environment variables that are set up this way: c='eval cd' d='; PS1="[`pwd`] "' export c d PS1 You can stick this in your .profile or in a file you . from within .profile. Leo.