[comp.os.vms] Setting prompt to default directory

OBERMAN@ICDC.LLNL.GOV ("Kevin Oberman, LLNL, 422-6955, L-156", 415) (01/28/88)

>     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" >:-{

Ooops! It's been a bad morning.

The above is an attempt to set the prompt to show default. The correct method
is:

$ Temp = F$Environment("DEFAULT")
$ SET PROMPT "''temp'$ "

The only problem with this is that it isn't `active'. the commands must
be re-entered each time the default is changed.

					R. Kevin Oberman
					Lawrence Livermore National Laboratory
					Internet: oberman@icdc.llnl.gov
   					(415) 422-6955

Disclaimer: Don't take this too seriously. I just like to improve my typing
and probably don't really know anything useful about anything.

-------