[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Return / exit values
From: |
David |
Subject: |
Re: Return / exit values |
Date: |
Thu, 10 Sep 2020 15:42:50 +1000 |
On Thu, 10 Sep 2020 at 10:10, Chris Elvidge <celvidge001@gmail.com> wrote:
> However 'N=0; echo $((!$N))' gives an error at the bash prompt.
Put a space after the exclamation point, otherwise it triggers history expansion
in the interactive shell. Demo:
$ N=0; echo $((! N))
1
> My question - is $[...] actually obsolete?
Yes.