Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Wedges enabled on -current



On Thu, 21 Aug 2014, Steffen Nurpmeso wrote:
|    wedgelist="$(dkctl "$disk" listwedges)"
|    if [ $? = 0 ]; then

You mean -eq here i presume.

It makes no difference.  -eq is a numeric test, and = is a string test.
"0" compares equal to "0" either way.  Since the shall has the values as
strings already, I usually prefer to use a string test.

--apb (Alan Barrett)


Home | Main Index | Thread Index | Old Index