Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[[ -x ]] and root
- X-seq: zsh-users 297
- From: colin@xxxxxxxxxxxxxxxxxxxxx (Colin Holmes)
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: [[ -x ]] and root
- Date: Mon, 15 Jul 1996 10:26:42 -0700 (PDT)
Hi,
I am quite new to sysadm and zsh so I hope this question isn't
stupid.
As root, I want to strip some files in a mixed bin and data
directory. So I use "zsh# if [[ -x file ]]" to find out if the file
has --x--x--x for the current (root) process.
However, [[ -x file ]] returns true for all files when run under a root process,
even for files --r--r--r that (correctly) fail execution for root with "permission
denied:"
Is this a zsh "feature" or am I misunderstanding something fundamental?
Colin.
--
* CJ Holmes, PhD,
* Dept Neurology, UCLA School of Medicine, 4238 Reed Bldg, Box 951769
* 710 Westwood Plaza, Los Angeles, CA 90095-1769
* ph 310-206-2101 fx 310-206-5518 email holmes@xxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author