C
clyclopedic
Can anyone explain why the following produces 'foofoo' at the end?
---------------------- cut -----------------------------
@ECHO ON
CLS
cd \
SET WL_HOME=\product files\elevenchars\1.2.3\foo
mkdir "%WL_HOME%"
FOR %%i IN ("%WL_HOME%") DO SET WL_HOME=%%~fsi
---------------------- cut -----------------------------
---------------------- cut -----------------------------
@ECHO ON
CLS
cd \
SET WL_HOME=\product files\elevenchars\1.2.3\foo
mkdir "%WL_HOME%"
FOR %%i IN ("%WL_HOME%") DO SET WL_HOME=%%~fsi
---------------------- cut -----------------------------