On Jul 2 06:39, Eric Blake wrote:
> There are two 'test's - the bash builtin, and /bin/test from coreutils.
> /bin/test uses access()/eaccess()
> (/usr/src/coreutils-5.3.0/src/test.c:552,
> /usr/src/coreutils-5.3.0/lib/euidaccess.c) to determine if a file is
> executable, which should leave it ent
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Brian Dessent on 6/5/2005 7:31 PM:
Sorry for a reply to an old thread, but I wanted to correct some
misinformation:
>>You mean special logic for windows file permissions (ACL?), not only
>>using the owner/group/other scheme?
>
> I think
Yitzchak Scott-Thoennes wrote:
(snip)
perl only checks ACLs if you ask it to. What does:
$ perl -e 'use filetest "access"; if ( ! -x "/cygdrive/c/Programme/NSIS/NSIS.exe" )
{print "not executable";}'
not executable
show?
Thank you! Works like a charm :)
Volker
--
PGP/GPG key (ID: 0x9F8A7
Yitzchak Scott-Thoennes wrote:
On Sun, Jun 05, 2005 at 06:31:31PM -0700, Brian Dessent wrote:
Volker Quetschke wrote:
You mean special logic for windows file permissions (ACL?), not only
using the owner/group/other scheme?
I think that it recognises files ending in ".exe" and special-cases
On Sun, Jun 05, 2005 at 06:31:31PM -0700, Brian Dessent wrote:
> Volker Quetschke wrote:
>
> > You mean special logic for windows file permissions (ACL?), not only
> > using the owner/group/other scheme?
>
> I think that it recognises files ending in ".exe" and special-cases
> them.
>
> > $ getf
Volker Quetschke wrote:
> You mean special logic for windows file permissions (ACL?), not only
> using the owner/group/other scheme?
I think that it recognises files ending in ".exe" and special-cases
them.
> $ getfacl /cygdrive/c/Programme/NSIS/NSIS.exe
> # file: /cygdrive/c/Programme/NSIS/NSIS
Hi!
$ test -x "/cygdrive/c/Programme/NSIS/NSIS.exe" && echo "executable"
executable
coreutils have special logic for binaries with .exe suffix, which is why
this works.
You mean special logic for windows file permissions (ACL?), not only
using the owner/group/other scheme?
$ perl -e 'if ( !
Gerrit P. Haase wrote:
> When I test e.g. mozilla.exe which I'm not the owner:
Good point. Changing the ownership of java.exe made perl to print
"executable" in case of rwx-- permissions.
Regards
Krzysztof Duleba
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem r
Volker Quetschke wrote:
> $ test -x "/cygdrive/c/Programme/NSIS/NSIS.exe" && echo "executable"
> executable
coreutils have special logic for binaries with .exe suffix, which is why
this works.
> $ perl -e 'if ( ! -x "/cygdrive/c/Programme/NSIS/NSIS.exe" ) {print "not
> executable";}'
> not execu
Gerrit P. Haase wrote:
Krzysztof Duleba wrote:
Volker Quetschke wrote:
I stumbled over the following problem, perl's -x doesn't recognize
some files as executable, even though they are and test -x does.
It works for me if the file is group or world executable.
Works for me anyway, as
Krzysztof Duleba wrote:
Volker Quetschke wrote:
I stumbled over the following problem, perl's -x doesn't recognize
some files as executable, even though they are and test -x does.
It works for me if the file is group or world executable.
Works for me anyway, as long as I am probing a Cyg
Volker Quetschke wrote:
> I stumbled over the following problem, perl's -x doesn't recognize
> some files as executable, even though they are and test -x does.
It works for me if the file is group or world executable.
$chmod a-x java.exe; ls -l java.exe
-rw---+ 1 Administratorzy Brak 45161 M
I stumbled over the following problem, perl's -x doesn't recognize
some files as executable, even though they are and test -x does.
(The following example uses nsis.exe but something like java.exe
would show the same problem.)
Examples:
$ test -x "/cygdrive/c/Programme/NSIS/NSIS.exe" && echo "e
13 matches
Mail list logo