Detecting delayed environment variable expansion

D

David Trimboli

I'm writing a script that requires delayed environment variable expansion,
and I'd like to find a way to determine if the current shell is using it.
Is there a simple way to do this, or would I have to write a piece of code
that gives different answers depending on the status of delayed environment
variable expansion, and test that answer? The script would warn the user
that he needs to run CMD /V:ON before running the script. (I'm sure there's
no way to get a script to turn DEVE on within itself.)

David
Stardate 3659.3
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top