Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16535

Re: Return from function depending on number of parameters

From Oğuz <oguzismailuysal@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Return from function depending on number of parameters
Date 2020-07-04 16:39 +0300
Message-ID <mailman.940.1593869973.2574.bug-bash@gnu.org> (permalink)
References <b1c19d38-64c0-f1ae-d08a-1ada435a0022@gmail.com> <506AA493-0D79-4A9A-A53E-279FDA72CED5@larryv.me> <0b8f32e5-0644-526e-59a4-1bad5a474262@passchier.net> <CAH7i3LquMJ45DpGtB1i8U27Pu8hS9xLFU9b2iiObX9oBV1zRiQ@mail.gmail.com>

Show all headers | View raw


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

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Return from function depending on number of parameters Oğuz <oguzismailuysal@gmail.com> - 2020-07-04 16:39 +0300

csiph-web