TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: JOHN CARTER
from: AHEM A RIVET`S SHOT
date: 2020-07-19 07:50:00
subject: Re: Strange construct in

On 19 Jul 2020 03:34:57 GMT
John Carter  wrote:

> The problem arises on the IF ststement.  The error is too many
> parameters.  It looks like the "-a" is something I have never seen in
> an IF statement and I can find no reference to it anywhere.

 It is documented in the manpage for test. The open square bracket
in that if statement is not punctuation, it is the test command (if you look
in /bin you should find that [ and test are links to the same file (use ls
-i)). The -a flag for test is a logical and.

 I'd suggest quoting ${GOV} and ${FORCE} in that statement one or
other may be empty which without quotes will break the syntax of the test
command arguments.

--
Steve O'Hara-Smith                          |   Directable Mirror Arrays
C:\>WIN                                     | A better way to focus the sun
The computer obeys and wins.                |    licences available see
You lose and Bill collects.                 |    http://www.sohara.org/

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.