Author Jess
Recipients Jess, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-03-15.01:14:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552612479.05.0.169637606207.issue36245@roundup.psfhosted.org>
In-reply-to
Content
Looks like the brackets are fine even in the bracket case Steve mentioned.

@echo off

if NOT DEFINED ABCDEF (
  echo "all good"
)

if NOT DEFINED ABCDE (
  echo "all good2"
)

set ABCDE=

if NOT DEFINED ABCDE (
  echo "sadness"
)

if [%ABCDE%]==[] (
  echo "all good3"
)

set ABCDE=]

if [%ABCDE%] NEQ [] (
  echo "all good4"
)

set ABCDE="]"

if [%ABCDE%] NEQ [] (
  echo "all good5"
)


>demo.bat
"all good"
"sadness"
"all good3"
"all good4"
"all good5"
History
Date User Action Args
2019-03-15 01:14:39Jesssetrecipients: + Jess, paul.moore, tim.golden, zach.ware, steve.dower
2019-03-15 01:14:39Jesssetmessageid: <1552612479.05.0.169637606207.issue36245@roundup.psfhosted.org>
2019-03-15 01:14:39Jesslinkissue36245 messages
2019-03-15 01:14:38Jesscreate