[5057] in testers

home help back first fref pref prev next nref lref last post

Re: sun4 [9.0.11]: show

daemon@ATHENA.MIT.EDU (Greg Hudson)
Tue Jul 24 20:29:29 2001

Message-Id: <200107250029.UAA07369@egyptian-gods.MIT.EDU>
To: Jonathon Weiss <jweiss@MIT.EDU>
cc: testers@MIT.EDU
In-Reply-To: Your message of "Tue, 24 Jul 2001 19:20:10 EDT."
             <200107242320.TAA02098@the-other-woman.mit.edu> 
Date: Tue, 24 Jul 2001 20:29:24 -0400
From: Greg Hudson <ghudson@MIT.EDU>

> I think square brackets are missing on line 9

Square brackets wouldn't do the trick.  The shell construction

  if ! foo; then

is supposed to negate the sense of the exit status of foo (which is a
program, not a test expression).  Unfortunately, the Solaris /bin/sh
doesn't appear to support that syntax.  So the uglier but more portable

  if foo; then :; else

needs to be used.  (You can't even omit the command in the body of the
statement.  Annoying.)

This problem affects all show-* scripts, and was introduced on July
10.

home help back first fref pref prev next nref lref last post