Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!iuvax!bsu-cs!cfchiesa From: cfchiesa@bsu-cs.UUCP (Sir Xetwnk) Newsgroups: comp.os.vms Subject: Re: Getting directory in DCL prompt Message-ID: <2048@bsu-cs.UUCP> Date: 6 Feb 88 17:22:38 GMT References: <8801271320.AA15259@mitre.arpa> Organization: CS Dept, Ball St U, Muncie, Indiana Lines: 36 Summary: Spaces in Prompt In article <8801271320.AA15259@mitre.arpa>, nigam%mwvms@MITRE.ARPA writes: > -------- > >From: "The Radio Gnome" > >Subject: getting current dir in dcl prompt > > The logical thing to do would be: > >$TEMP = "show default" > >$SET PROMPT = 'TEMP' > > > >..but VMS will only take a string for SET PROMPTs argument > >and the string must not have spaces in it. VMS complains about > >"too many parameters" >:-{ Yes it WILL take strings containing spaces. In just about EVERY instane where THIS IS A STRING WITH SPACES is "not accepted" by VMS, "THIS IS A STRING WITH SPACES" IS accepted. The secret is that you have to put quotes around the string. You can quite easily get away with $ SET PROMPT:"Prompt with spaces in it> " just like that. Chris <><><><><><><><><><><><><><><><><><><><><><><><><><><><> Chris Chiesa <><><><><> <> {ihpn4|seismo}!{iuvax|pur-ee}!bsu-cs!cfchiesa <> <> cfchiesa@bsu-cs.UUCP <> <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>