Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!hc!beta!unm-la!unmvax!nmtsun!hydrovax From: hydrovax@nmtsun.nmt.edu (M. Warner Losh) Newsgroups: comp.os.vms Subject: Re: getting current dir in dcl prompt Message-ID: <1288@nmtsun.nmt.edu> Date: 31 Jan 88 01:15:58 GMT References: <8801281127.AA17941@ucbvax.Berkeley.EDU> Organization: NMT Hydrology program Lines: 24 Summary: Here's how. In article <8801281127.AA17941@ucbvax.Berkeley.EDU>, V2002A@TEMPLEVM.BITNET ("The Radio Gnome") writes: > $TEMP = "show default" TEMP doesn't get set to the current default. It gets set to "SHOW DEFAULT" which explains .... > $SET PROMPT = 'TEMP' This expands out to "SET PROMPT = SHOW DEFUALT" which gives the following behavior: > > ..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" >:-{ > try : $ TEMP = F$ENVRIONMENT("DEFAULT") $ SET PROMPT="'TEMP'" and this will do the trick. If you are currently in USER:[WARNER], then your prompt will be set to USER:[WARNER]. -- bitnet: losh@nmt.csnet M. Warner Losh warner@hydrovax.nmt.csnet ! Don't know if this works, let me know. csnet: warner@hydrovax.nmt.edu uucp: ...{cmcl2, ihnp4}!lanl!unmvax!nmtsun!warner%hydrovax