Subj : Re: changing the prompt to show only a few directories To : Charles Dye From : Stan Brown Date : Sat Feb 09 2002 01:10 pm From: Stan.Brown@f3.n342.z1.cereal.mv.com (Stan Brown) Subject: Re: changing the prompt to show only a few directories From: brahms@mindspring.com (Stan Brown) Charles Dye wrote in comp.os.msdos.4dos: >On Thu, 7 Feb 2002 21:19:33 -0500, brahms@mindspring.com (Stan Brown) >wrote: >>Well, the help ("HELP PROMPT") specifically says to use a double >>percent sign in a batch file. > >Yes, I see. They're doing that to prevent the function from being >evaluated at the time the variable is defined -- that is, to defer >evaluation until the prompt string is displayed. > >I personally prefer the use of backquotes, as suggested by Steve >Fabian. (For one thing, you only need to remember to quote the >whole string once, instead of doubling percents in front of every >variable and function you want to defer.) But whatever works for >you. I think on reflection that I agree with you. I certainly use backquotes in my aliases. Just a guess: Maybe the help text was written for an earlier version of 4DOS, before backquotes existed, and then never got updated? -- Stan Brown, Oak Road Systems, Cortland County, New York, USA http://oakroadsystems.com My reply address is correct as is. The courtesy of providing a correct reply address is more important to me than time spent deleting spam. -- |Fidonet: Stan Brown 1:342/3 | | Origin: The Cereal Port BBS (603)899-3335 199.125.78.133 (1:132/152) --- # Origin: (1:132/152.4) * Origin: Baddog BBS (1:218/903) .