Article View: comp.unix.shell
Article #1105What is "standard" test?
From: Jan Dj{rv
Date: Sat, 08 Sep 1990 16:01
Date: Sat, 08 Sep 1990 16:01
16 lines
1074 bytes
1074 bytes
Hi all, A while ago I made some shell scripts that where supposed to run on several machines. To my surprise not all test had the -x file test (test if executable) I wonder which file tests are the bare minimum that all test:s have ? And if -x isn't among them, how do I found out if a file is executable from a shell script? On HP test knows about -r (readable), -w (writable), -x (executable), -f (regular file), -d (directory), -c (character special), -b (block special) -p (fifo), -u (set uid), -g (set gid), -k (sticky bit), -s (size > 0) -H (CDF, HP specific), -h (symbolic link). Thanks, Jan D.
Technical Details
Message-ID:
<1656@kuling.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!eru!hagbard!sunic!bmc.uu.se!kuling!jandShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!eru!hagbard!sunic!bmc.uu.se!kuling!jand
From: jand@kuling.UUCP (Jan Dj{rv)
Newsgroups: comp.unix.shell
Subject: What is "standard" test?
Message-ID: <1656@kuling.UUCP>
Date: 8 Sep 90 16:01:05 GMT
Reply-To: jand@kuling.UUCP (Jan Dj{rv)
Organization: Dept. of Computer Systems, Uppsala University, Sweden
Lines: 16