Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: =?UTF-8?B?T8SfdXo=?= Newsgroups: gnu.bash.bug Subject: Re: Return from function depending on number of parameters Date: Sat, 4 Jul 2020 16:39:27 +0300 Lines: 24 Approved: bug-bash@gnu.org Message-ID: References: <506AA493-0D79-4A9A-A53E-279FDA72CED5@larryv.me> <0b8f32e5-0644-526e-59a4-1bad5a474262@passchier.net> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: usenet.stanford.edu 1593869973 15894 209.51.188.17 (4 Jul 2020 13:39:33 GMT) X-Complaints-To: action@cs.stanford.edu Cc: "bug-bash@gnu.org" To: pepa65 Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2GDA3JlBxdijxe3qhkgykB3gpHfLtgWpe46fE29tWbs=; b=O8TPH4x8COaF2lcV0BqJWpd6qDLITiCZODpYyKqAGhRDf7Azdtm45jA2yijiFwbDzS n4c8vHoa0+Wt3ko8vgbP5vWMdLhe/ILundEVachUrardeA9PjtCVNvoZUpadYhgO+EAs p0bBbbA9tcxp5rkBOaXJQWflNrtSz26/EReCsrBKmyamhF4q40nPrfI1LpW2a6nIkWvK DDPlbzm9BmLQ/RurGGCRiZSYYxKzsO8xfM3GysjCvh0bZiO9i+VnjKMU/24nvlyQJNs4 a5MmEr0ZC7mkYW63b/z8T4Gn6GHIoA9pdCIALROh32orY2njoE9o4fs716egBtKngKQ5 BRJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2GDA3JlBxdijxe3qhkgykB3gpHfLtgWpe46fE29tWbs=; b=j2AZ5k9gqZmdnzw4fbMdyGGrVBP5FnYUxXQ917YCXBCKCEV/vU4JbrlB4Kr7uJyUiK mw3aut1zoFqL7T6YeLE6u8u7GeYnD7H93fr8LOVX9bRhxjEgC5/vR13WTIEURRFVW+BK XM0HHYlFGrBt9Y8TVGXrbLLC5t8x9NWO7HLEHHPHD1FUN1NUUd+iEZPLngiHGgTL+jGC cTsPpQeS5CA0Tc4LSb/qAzcz9sO+sj/yM6AR9XKjhO+7JecMF1GM9aDl7jzBGbHGLmjK KfTHMjjuBml52zUrPJIwMB6WyHXykuH32zNliyPSI4b5SZAEh9KWneECKPTPvZdLa1O/ dUEQ== X-Gm-Message-State: AOAM531+KCTU4IBlsA5gCTq2aDOjru+V/3ofzraw0ZyNlJdhhSwpKo5U 7hW8Is9mhEOC0WELN9u7LHVgmmXArVhKbmBUF4sSy6km X-Google-Smtp-Source: ABdhPJwHiM3oevQBuzx8V7/Vk7qlWmieYRTVMnneGSRwA0WuTGlmPPdflzICMunt4agxgKRmZ/+gXXBWDGzCu/qpriU= X-Received: by 2002:a37:3d4:: with SMTP id 203mr37250088qkd.420.1593869967688; Sat, 04 Jul 2020 06:39:27 -0700 (PDT) In-Reply-To: <0b8f32e5-0644-526e-59a4-1bad5a474262@passchier.net> Received-SPF: pass client-ip=2607:f8b0:4864:20::730; envelope-from=oguzismailuysal@gmail.com; helo=mail-qk1-x730.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <506AA493-0D79-4A9A-A53E-279FDA72CED5@larryv.me> <0b8f32e5-0644-526e-59a4-1bad5a474262@passchier.net> Xref: csiph.com gnu.bash.bug:16535 4 Temmuz 2020 Cumartesi tarihinde pepa65 yazd=C4=B1: > On 04/07/2020 04.39, Lawrence Vel=C3=A1zquez 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#t= ag_18_06_04 Peter > > > --=20 O=C4=9Fuz