[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OpenBSD shell, errexit, and && in if clause
From: |
Paul Eggert |
Subject: |
Re: OpenBSD shell, errexit, and && in if clause |
Date: |
Mon, 01 May 2006 20:21:51 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
Ralf Wildenhues <address@hidden> writes:
> This example isn't right, in that it does not expose the problem, as
> the first command in the AND list should fail. Did you mean "test -z"
> instead of "test -n" (four instances), or "foo=''", and is there a
> reason to prefer it over the simpler "false"?
I meant foo=''; I installed that. Thanks. I thought "false" made the
example unrealistically simple. (Perhaps I should have left it that
way...)