Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (4) </ 1 2 3 [4] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Cond statements, BASH< Next Oldest | Next Newest >
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Sep. 10 2007,04:02 QUOTE

Quote (^thehatsrule^ @ Sep. 09 2007,20:39)
In DSL, it looks like [ is a symlink to test.

The /usr/bin --help files are the same for both "[" and "test."

Manual for test:

NAME
     2        test - check file types and compare values
     3

 SYNOPSIS
     5        test EXPRESSION
     6        [ EXPRESSION ]
     7        test OPTION

What seems to differ from other languages is that "if" requires a command to follow it; thus the use of brackets (generally reserved for commands) instead of curly braces (for grouping, as with TCLTK, C++, etc.)
Back to top
Profile PM 
15 replies since Sep. 08 2007,19:00 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (4) </ 1 2 3 [4] >/
reply to topic new topic new poll
Quick Reply: Cond statements, BASH

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code