help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-bash] Arithmetic evaluation / expansion question


From: Bruce Hohl
Subject: [Help-bash] Arithmetic evaluation / expansion question
Date: Wed, 10 Oct 2018 12:47:05 -0400

An arithmetic evaluation / expansion question please:  the man page
indicates that base 10 is the default, and null or unset variables evaluate
to zero.

Are strings also evaluated to zero within $(( ))?
(Except those beginning with 0 which are octals.)

$ pd=abc
$ echo $pd
abc
$ echo $((pd))
0


reply via email to

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