bug-bash
[Top][All Lists]
Advanced

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

Re: Return from function depending on number of parameters


From: Oğuz
Subject: Re: Return from function depending on number of parameters
Date: Sat, 4 Jul 2020 16:39:27 +0300

4 Temmuz 2020 Cumartesi tarihinde pepa65 <pepa65@passchier.net> yazdı:

> On 04/07/2020 04.39, Lawrence Velázquez wrote:
> > It might tell you something that $[...] is not even mentioned in
> > the man page for bash 3.2.57, which is decidedly not the current
> > version.
>
> About that, is it for sure that $[] is going to be obsoleted/removed in
> the future? I happened to use it recently, and thought it was more
> readable than $(()) and caused less visual clutter. Any reason $(()) was
> preferred?
>
>
 $(()) is the standard syntax for arithmetic expansion. See
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_04

Peter
>
>
>

-- 
Oğuz


reply via email to

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