bug-bash
[Top][All Lists]
Advanced

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

Re: Syntax error near unexpected token `newline' within loops


From: Pierre Gaston
Subject: Re: Syntax error near unexpected token `newline' within loops
Date: Mon, 24 Apr 2017 14:25:41 +0300



On Mon, Apr 24, 2017 at 1:59 PM, <address@hidden> wrote:
(...)

and yes

        V_NAME=Friday
        for (( INDEX=0; INDEX<$((10-${#V_NAME})) ; INDEX++ ))
        do
            echo $INDEX
        done

does also work, nevertheless using $(...) in the very first example is allowed


or even  for (( INDEX=0; INDEX<(10-${#V_NAME}) ; INDEX++ ))
but otherwise yes, syntax looks ok

reply via email to

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