rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: gatech!skeeve!arnold@harvard.harvard.edu (Arnold D. Robbins)
To: rc@archone.tamu.edu
Subject: a standalone test
Date: Fri, 14 Feb 1992 08:08:05 -0600	[thread overview]
Message-ID: <9202140908.AA02330@skeeve.ATL.GA.US> (raw)

> 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


                 reply	other threads:[~1992-02-14 16:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9202140908.AA02330@skeeve.ATL.GA.US \
    --to=gatech!skeeve!arnold@harvard.harvard.edu \
    --cc=rc@archone.tamu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).