RedHat sshd.init script typo ?

Jim Knoble jmknoble at jmknoble.cx
Wed Nov 8 04:36:30 EST 2000


Circa 2000-Nov-07 09:57:48 -0700 dixit Smith, Donald :

: Why bother assigning RETVAL then comparing it to 0. How about a comment
: explaining $? 
: # The return value from killproc is stored in $? (normal sh behavior) then
: 				[ $? -eq 0 ] && rm -f /var/lock/subsys/sshd
: >                 fi
: >                 echo
: This saves an assignment helps newbies understand that in borneshell $? is
: the decimal value returned by the last synchronously executed command. 

The init script ought to 'exit ${RETVAL}' as its last action; that's
why to save the value of $? in RETVAL (though i can think of a much
better name for that variable...).

-- 
jim knoble | jmknoble at jmknoble.cx | http://www.jmknoble.cx/





More information about the openssh-unix-dev mailing list