Article View: comp.unix.shell
Article #1817Question about 'test' (Was Re: testing if a file is present)
From: Thomas Heller
Date: Thu, 22 Nov 1990 18:52
Date: Thu, 22 Nov 1990 18:52
14 lines
1066 bytes
1066 bytes
In article <1990Nov21.191638.19469@athena.mit.edu>, jik@athena.mit.edu (Jonathan
I. Kamens) says:
>
>In sh, with either a test built-in named "[" or a link in your filesystem
^^^^^^^^^^^^^^^^^^^^^^^^^^^
>called "[" pointing to the test program:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
But what will the (bourne-) shell say about...
>
> if [ -r filename ]; then
^
... ?
Thomas Heller
Technical Details
Message-ID:
<90326.175421PPH93@DMSWWU1A.BITNET>Path:
arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!samsung!sdd.hp.com!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!psuvax1!psuvm!dbngmd13!dmswwu1c!pph93References:
<ger.659126250@prisma> <1990Nov21.191638.19469@athena.mit.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!samsung!sdd.hp.com!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!psuvax1!psuvm!dbngmd13!dmswwu1c!pph93 From: PPH93@DMSWWU1A.BITNET (Thomas Heller) Newsgroups: comp.unix.shell Subject: Question about 'test' (Was Re: testing if a file is present) Message-ID: <90326.175421PPH93@DMSWWU1A.BITNET> Date: 22 Nov 90 18:52:34 GMT References: <ger.659126250@prisma> <1990Nov21.191638.19469@athena.mit.edu> Distribution: comp.unix Lines: 14 Organisation: Westfaelische Wilhelms-Universitaet, Muenster, Germany