[Top][All Lists]

[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 <> 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))

> My question - is $[...] actually obsolete?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]