Thanks Grisha,
Sorry for putting you through analysing my faulty example.
Phil
On 16 May 2016 at 05:58, Grisha Levit wrote:
>
> On Sun, May 15, 2016 at 4:42 PM, phil colbourn
> wrote:
> > # here, M=2
>>
>>
> It's not -- the value of $M here is the string "F[word]". Your print
> function r
On Sun, May 15, 2016 at 4:42 PM, phil colbourn
wrote:
> # here, M=2
>
>
It's not -- the value of $M here is the string "F[word]". Your print
function reports the value of "$((M*1))", which is, in fact "2": inside the
arithmetic expression "M" is expanded to "F[word]" which is expanded to "2".
>
Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash