Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!att!cbnewsc!woods From: woods@cbnewsc.ATT.COM (Warren D. Swan) Newsgroups: comp.unix.questions Subject: Re: PS1='${PWD}' and make uppercase? Message-ID: <12622@cbnewsc.ATT.COM> Date: 7 Jan 90 00:08:32 GMT References: <8229@ingr.com> Reply-To: woods@cbnewsc.ATT.COM (Warren D. Swan) Organization: AT&T Bell Laboratories Lines: 15 In article <8229@ingr.com> uunet!ingr!b23b!dragon!keith (Keith Ford) writes: > >I noticed in a recent discussion that using PS1='${PWD}' will cause the >working directory path to become the UNIX prompt. This works fine, but >is there a way to translate it to upper-case? typeset -u PS1 causes your entire PS1 prompt to always be upper case. Which is good for the situation you've just asked about, but not so good if you want to include something else in your PS1 that you don't want to be upper case, such as PS1="`logname` "'$PWD'. DON'T DO: typeset -u PWD since there are some programs that assume that PWD is the valid name of the current working directory, which it wouldn't then be.