home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!elroy.jpl.nasa.gov!jato!csi!mwette
- From: mwette@csi.jpl.nasa.gov (Matt Wette)
- Subject: weird propery of test under root
- Message-ID: <1993Jan21.213702.9288@csi.jpl.nasa.gov>
- Originator: mwette@mr-ed
- Sender: usenet@csi.jpl.nasa.gov (Network Noise Transfer Service)
- Nntp-Posting-Host: mr-ed
- Organization: Jet Propulsion Laboratory
- Date: Thu, 21 Jan 1993 21:37:02 GMT
- Lines: 22
-
-
- OS: SunOS 4.1.3
-
- Here's something weird:
- test -x file
- under root always says file is executable
-
- mr-ed# sh
- # touch xyz
- # if [ -x xyz ]; then echo executable; else echo not executable; fi
- executable
-
- # su mwette
- mr-ed$ sh
- $ if [ -x xyz ]; then echo executable; else echo not executable; fi
- not executable
-
- Why? How can I get around this behaviour under root?
-
- Matt
- --
- mwette@csi.jpl.nasa.gov
-