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

Ahem A Rivet's Shot  wrote:
>> Another solution, not decades old, is to use double brackets [[ which is
>> a keyword, not a built-in like [ or test,
>
>  However that only works in bash so be sure to specify bash in the
> shebang rather than /bin/sh which may be something more like a real Bourne
> shell and not support extensions like [[.

Ah yes but the script did specify #!/usr/bash :) As this was a very
Pi-specific script, I think portability isn't an issue.

--- 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™.