Author: Richard Brown Date: To: Hampshire LUG Discussion List Subject: Re: [Hampshire] Bash pipe creates infinite loop - why?
> Thanks for the info. Minor question: I read bcrypt's documentation (man > page and web site) but I don't think it said anything about return codes.
> Maybe there's some other way of discovering this?
Everything returns. Bash stores the return code of the last run
command in $?. 0 is win, not 0 is an error of somekind. I can't
remember now why this is the wrong way around (0 being false > 0 being
true).
As Bob said, the problem is that bcrypt is looping indefinately.
I'm still not clear on what you're trying to do, but if you're already
using bash to compare your two strings, why don't you use it to make
sure they're at least 8 characters long?