DO ignores switch /D ?

May 31, 2008
382
2
According to the manual, DO /D"path" /S * should iterate fileset in "path". Instead it seems to ignore the /D switch and always start iterating in the current directory. Is this a bug or have I missed something?
Versions TCC 9.02.152 - WinXP Pro SP3
PHP:
REM help file: DO varname IN [range...] /D"directory" [/I:"text" /S[n] /A:[[-|+]rhsadecijopt] fileset
pushd C:\ & rem debug
do i in /D"%TEMP%" /S /A:D *
  echo %i
popd & rem debug
quit & rem debug
enddo
 
Stefano Piccardi wrote:

> According to the manual, DO /D"path" /S * should iterate fileset in "path". Instead it seems to ignore the /D switch and always start iterating in the current directory. Is this a bug or have I missed something?

Already fixed in v10; v9 will be updated after v10 is released.

Rex Conn
JP Software
 

Similar threads