[Buildd-tools-devel] Bug#505747: correct compare?

Teodor mteodor at gmail.com
Sun Nov 16 21:40:28 UTC 2008


On Fri, Nov 14, 2008 at 11:25 PM, Kees Cook <kees at outflux.net> wrote:
> Also, when comparing this report against bug 483338, I think the patch for
> that bug needs to use "eq" rather than "==" for a proper string comparison.

I've just discovered that "eq" can *only* be used for comparing
numbers and the use of "==" is working only with 'bash' (not POSIX
compliant). For string comparison you should probably use "=" and
"!=".

Cheers





More information about the Buildd-tools-devel mailing list