TIP: Click on subject to list as thread! ANSI
echo: tuxpower
to: Aug
from: Maurice Kinal
date: 2024-09-13 03:03:00
subject: I just discovered busybox

Hej Aug!

 A> What are the [ and [[

Along with ] and ]] they are tests and exit returning a 0 for true and 1 for false.

Try this at your busybox commandline;
  [ "a" = "a" ] ; echo $?

It should return a 0 for true since a is equal to a.  Now try;
  [ "a" = "b" ] ; echo $?

In this case it should return a 1 for false since a is not equal to b.

Clear as mud?

Het leven is goed,
Maurice

 o-  -o   -o    o-  -o   -o    o-   o-   o-   o-   o-  -o   -o   -o   -o   -o
/)    (\   (\  /)    (\   (\  /)   /)   /)   /)   /)    (\   (\   (\   (\   (\
^^    ^^   ^^  ^^    ^^   ^^  ^^   ^^   ^^   ^^   ^^    ^^   ^^   ^^   ^^   ^^
... Lieve zestien pingu‹ns van de Apocalyps.
--- GNU bash, version 5.2.32(1)-release (x86_64-pc-linux-gnu)
                                                                                                           
* Origin: Little Mikey's EuroPoint @ (2:280/464.113)

SOURCE: echomail via QWK@pharcyde.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™.