* a standalone test
@ 1992-02-14 14:08 Arnold D. Robbins
0 siblings, 0 replies; only message in thread
From: Arnold D. Robbins @ 1992-02-14 14:08 UTC (permalink / raw)
To: rc
> From: Byron Rakitzis <byron@archone.tamu.edu>
> Subject: Re: Just how brain dead is SCO Unix?
> Date: Mon, 10 Feb 1992 20:50:53 -0600
>
> I am sure there is a GNU test out there. Try looking for a "shellutils"
> package.
Most likely one would have to yank test out of bash, although I have to
admit to not having checked the gnu shellutils. (Anyone who thinks ksh
is bloated should take a look at bash. Sheesh.)
The "right" thing to do (IMHO) is to write a simple ftest program
that always takes exactly one option and one argument, and does not do any
of the string or number comparisons of /bin/test.
ftest -x /bin/rc
ftest -w /dev/null
and hook things together with the shell's && and || instead of -a and -o.
Use ~ or switch for string matching and expr for math. Pardon me if I've
stated the obvious.
Arnold Robbins -- The Basement Computer | Laundry increases
Internet: arnold@skeeve.ATL.GA.US | exponentially in the
UUCP: { gatech, emory }!skeeve!arnold | number of children.
Bitnet: Forget it. Get on a real network. | -- Miriam Robbins
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1992-02-14 16:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1992-02-14 14:08 a standalone test Arnold D. Robbins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).