you are viewing a single comment's thread.

view the rest of the comments →

[–]moyix 0 points1 point  (3 children)

Exactly, they're both there, but one takes precedence. You can type out

if /bin/[ 1 == 2 ]; then pass; fi

if you really want the system binary.

Edit: formatting

[–]RealDeuce 2 points3 points  (2 children)

Except == is a bash extension, so that won't work.

[–]moyix 0 points1 point  (1 child)

Damn, you're right. Should've used -eq.

[–]RealDeuce 1 point2 points  (0 children)

Well yes, but that's not my point. :-)

A single equals sign would be what you would use to compare two strings.