[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: about the ! builtin
From: |
Bruno Haible |
Subject: |
Re: about the ! builtin |
Date: |
Wed, 26 May 2004 14:07:06 +0200 |
User-agent: |
KMail/1.5 |
Paul Eggert wrote:
+is therefore not portable in practice. Typically it is easy to rewrite
> +such code, e.g.:
> +
> address@hidden
> +cmp file1 file2 >/dev/null 2>&1 || echo files differ or trouble
> address@hidden example
In my case this is not so easy, because it's inside a boolean expression
A && ! B && C. Can you please mention that the general replacement rule is
that
! statement;
becomes
{ if statement; then false; else true; fi; }
This also works in the not so easy cases.
Bruno