Artifacts Associated With Ticket 226413
Ticket change [b0ab4376d6] (rid 98026) by jhilbert on 2000-12-20 02:04:59:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
"file delete -force" deletes nonempty directories on Windows NT, but not on Windows 98. The following script demonstrates. im4u is a Windows 98 machine, annas_nt is an NT 4.0 machine % file mkdir //im4u/c-drive/testdir % open //im4u/c-drive/testdir/jon w fileabd120 % close fileabd120 % glob //im4u/c-drive/testdir/* //im4u/c-drive/testdir/jon % file delete //im4u/c-drive/testdir error deleting "//im4u/c-drive/testdir": permission denied % file delete -force -- //im4u/c-drive/testdir error deleting "//im4u/c-drive/testdir": permission denied % file delete //im4u/c-drive/testdir/jon % file delete //im4u/c-drive/testdir % glob //im4u/c-drive/testdir/* no files matched glob pattern "//im4u/c-drive/testdir/*" % glob //im4u/c-drive/test* no files matched glob pattern "//im4u/c-drive/test*" % file mkdir //annas_nt/c-drive/testdir % open //annas_nt/c-drive/testdir/jon w fileabe3a0 % close fileabe3a0 % file delete //annas_nt/c-drive/testdir error deleting "//annas_nt/c-drive/testdir": directory not empty % file delete -force -- //annas_nt/c-drive/testdir % glob //annas_nt/c-drive/test* no files matched glob pattern "//annas_nt/c-drive/test*"
- foundin initialized to: "obsolete: 8.3.1"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "jhilbert"
- subsystem initialized to: "37. File System"
- title initialized to:
file delete cannot delete nonempty directories on Windows 98
- type initialized to: "Bug"
Ticket change [e498e83e84] (rid 87981) by dkf on 2001-01-27 22:46:17:
- icomment:
It obviously depends on something fairly subtle, since the following worked as advertised for me with 8.3.0: % cd /windows/temp % file mkdir foo % cd foo % close [open bar w] % cd .. % list [catch {file delete foo} msg] $msg 1 {error deleting "foo": directory not empty} % list [catch {file delete -force foo} msg] $msg 0 {} - login: "dkf"
- mimetype: "text/plain"
- priority changed to: "4"
- subsystem changed to: "90. FAQs"
- username: "dkf"
- icomment:
Ticket change [a6eed35c18] (rid 98694) by dkf on 2001-02-07 22:59:29:
- subsystem changed to: "37. File System"
Ticket change [88c51b2a93] (rid 131917) by jhilbert on 2001-02-17 02:51:53:
- icomment:
I believe another symptom I have discovered is relevant. The TclpStat() routine returns different results depending on whether it is running on W98 or W2000/NT, depending on what type of pathname is passed to it. Apparently W98 does not perform as expected by TclpStat() if the pathname is the root drive of a volume shared on another machine (e.g. \\server\volume). This causes several parts of the Tcl file command to misbehave, including "file delete" as mentioned in the original bug, and "file isdirectory" and "file mkdir". The following simple C program can be used to show the difference. Compile and run it as a console app, passing a filename as a single argument. It returns the results of a FindFirstFile() call and a GetFileAttributes() call on the filename. #include <windows.h> #include <stdio.h> #include <sys/stat.h> int main(int argc, char* argv[]) { if (argc>1) { DWORD attr = GetFileAttributes(argv[1]); printf("flag for directory is %08X",FILE_ATTRIBUTE_DIRECTORY); printf("\nattributes from GetFileAttributes(%s) : %08X",argv[1],attr); WIN32_FIND_DATA findData; HANDLE handle = FindFirstFile(argv[1],&findData); if (handle != INVALID_HANDLE_VALUE) { printf("\nattributes from FindFirstFile(%s): %08X",argv[1], findData.dwFileAttributes); } else { printf("\nFindFirstFile(%s) returned: %08X",argv[1],(DWORD)handle); } return 0; } printf("usage: %s <filename>",argv[0]); return 1; } - login: "jhilbert"
- mimetype: "text/plain"
- username: "jhilbert"
- icomment:
Ticket change [375d0dc1f2] (rid 107260) by jhilbert on 2001-02-17 02:53:58:
- icomment:
BTW, the symptom I describe in my Feb-16 comment appears to be directly relevant to the symptom described in bug #119351 as well.
- login: "jhilbert"
- mimetype: "text/plain"
- username: "jhilbert"
- icomment:
Ticket change [a9cdc1df28] (rid 99213) by andreas_kupries on 2001-08-24 04:49:32:
- assignee changed to: "vincentdarley"
- icomment:
Logged In: YES user_id=75003 SF renumbering dance. He refers to #219351.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
Ticket change [7a82817bbb] (rid 90336) by vincentdarley on 2001-08-24 23:50:59:
- assignee changed to: "hobbs"
- icomment:
Logged In: YES user_id=32170 I don't have Win98 to test on, nor am I familiar with Win32 guts to be able to resolve this.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
Ticket change [d93c67b973] (rid 107575) by hobbs on 2001-08-25 01:10:15:
- icomment:
Logged In: YES user_id=72656 This worked just fine for me testing from a Win98 and WinME box to the Win98 share, but on Win2K it does return the problem. I'm not sure what the best way to work around that would be.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [cdfeea5350] (rid 134325) by dkf on 2013-09-27 08:54:22:
- assignee changed to: "aku"
- closedate changed to: "2456562.87109667"
- closer changed to: "dkf"
- comment changed to:
"file delete -force" deletes nonempty directories on Windows NT, but not on Windows 98. The following script demonstrates. im4u is a Windows 98 machine, annas_nt is an NT 4.0 machine % file mkdir //im4u/c-drive/testdir % open //im4u/c-drive/testdir/jon w fileabd120 % close fileabd120 % glob //im4u/c-drive/testdir/* //im4u/c-drive/testdir/jon % file delete //im4u/c-drive/testdir error deleting "//im4u/c-drive/testdir": permission denied % file delete -force -- //im4u/c-drive/testdir error deleting "//im4u/c-drive/testdir": permission denied % file delete //im4u/c-drive/testdir/jon % file delete //im4u/c-drive/testdir % glob //im4u/c-drive/testdir/* no files matched glob pattern "//im4u/c-drive/testdir/*" % glob //im4u/c-drive/test* no files matched glob pattern "//im4u/c-drive/test*" % file mkdir //annas_nt/c-drive/testdir % open //annas_nt/c-drive/testdir/jon w fileabe3a0 % close fileabe3a0 % file delete //annas_nt/c-drive/testdir error deleting "//annas_nt/c-drive/testdir": directory not empty % file delete -force -- //annas_nt/c-drive/testdir % glob //annas_nt/c-drive/test* no files matched glob pattern "//annas_nt/c-drive/test*"
- icomment:
Win98 long obsolete; all current versions of Windows are based on NT, and currently supported Tcl versions do not support Win98 at all.
- login: "dkf"
- mimetype: "text/html"
- resolution changed to: "Out of Date"
- severity changed to: "Minor"
- status changed to: "Closed"
- username: "dkf"