Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem with "file executable" on windows, tcl 8.5.2

14 views
Skip to first unread message

Ralf Fassel

unread,
Apr 24, 2008, 3:21:31 PM4/24/08
to
ActiveState TCL 8.5.2, Windows XP SP2

'file executable' always returns 0, even on .exe and .bat when asked
for a file on a network share:

% info patchlevel
8.5.2

% set file L:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe
L:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe
% file exists $file
1
% file readable $file
1
% file executable $file
0

% file executable {L:/ralf/si++aegis/si++.4.0.C443/bin/winnt/simenu.bat}
0

However, when copying the files to local disk, the files are qualified
as executable:

% cp L:/ralf/si++aegis/si++.4.0.C443/bin/winnt/simenu.bat d:/temp
% file executable d:/temp/simenu.bat
1
% cp L:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe d:/temp
% file executable d:/temp/gen.exe
1

Also:
% set argv0
D:/Programme/tcl/bin/tclsh85.exe
% file executable $argv0
1

The L:/ Network Share is an Samba share mounted from a linux box.
Are there any special requirements for the smb options?

Thanks
R'

Francois Vogel

unread,
Apr 24, 2008, 5:43:01 PM4/24/08
to
Ralf Fassel said on 24/04/2008 21:21:

> ActiveState TCL 8.5.2, Windows XP SP2
>
> 'file executable' always returns 0, even on .exe and .bat when asked
> for a file on a network share:

> The L:/ Network Share is an Samba share mounted from a linux box.

I have opened a similar report some time ago for file readable on a
Samba share. Still open. See:

http://sourceforge.net/tracker/index.php?func=detail&aid=1613456&group_id=10894&atid=110894

Interesting to see this kind of oddities still with 8.5.2

Francois

Ralf Fassel

unread,
Apr 25, 2008, 11:05:58 AM4/25/08
to
* Ralf Fassel <ral...@gmx.de>

| ActiveState TCL 8.5.2, Windows XP SP2
|
| 'file executable' always returns 0, even on .exe and .bat when asked
| for a file on a network share:

For the record:
Assigned tracker-id [ 1951574 ] on sourceforge.

R'

0 new messages