Detecting delayed environment variable expansion

  • Thread starter Thread starter David Trimboli
  • Start date Start date
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
 
Back
Top