Re: [Hampshire] Bash pipe creates infinite loop - why?

Top Page
Author: Hugo Mills
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Bash pipe creates infinite loop - why?

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x569a5100.hantslug.org.uk.19027': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Thu Apr 3 20:14:33 2008 BST
gpg: using DSA key 20ACB3BE515C238D
gpg: Can't check signature: No public key
On Thu, Apr 03, 2008 at 08:11:37PM +0100, Richard Brown wrote:
> > 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).


Because there's a large number of ways of failing, but only one way
of succeeding, so success (true) is 0, and failure (false) is non-zero.

Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
       --- "Are you the man who rules the Universe?" "Well,  I ---       
                              try not to."