From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3/2) with ESMTP id DAA01375 for ; Tue, 16 Jul 1996 03:43:08 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id NAA17980; Mon, 15 Jul 1996 13:29:19 -0400 (EDT) Resent-Date: Mon, 15 Jul 1996 13:23:11 -0400 (EDT) From: colin@fuligin.loni.ucla.edu (Colin Holmes) Message-Id: <199607151726.KAA24274@fuligin.loni.ucla.edu> Subject: [[ -x ]] and root To: zsh-users@math.gatech.edu Date: Mon, 15 Jul 1996 10:26:42 -0700 (PDT) X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"gXIT9.0.BN4._vdwn"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/297 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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@loni.ucla.edu