The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
if [ $? -eq 0 ] .. can someone explain this?
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
if [ $? -eq 0 ] .. can someone explain this?
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
10-03-2006
vgersh99
Moderator
Join Date: Feb 2005
Location: Boston, MA
Posts: 5,131
Quote:
Originally Posted by
ranjita.c
I thought it means if the return code of the previous command
not equal
to 0...
Is this correct?
I'd interprete this as 'not equal to 0' which is to say '-ne 0'.
vgersh99
View Public Profile
Find all posts by vgersh99
Find vgersh99's past nominations received
Find vgersh99's present nominations given