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: Chet Ramey
Subject: Re: Return from function depending on number of parameters
Date: Sun, 5 Jul 2020 13:24:41 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.9.0

On 7/4/20 12:23 PM, Lawrence Velázquez wrote:

> Quoting Chet liberally from
> https://lists.gnu.org/archive/html/bug-bash/2012-04/msg00034.html:

>>
>> It dates from Posix circa 1990 (1003.2d9, of which I've lost my paper
>> copy).  I implemented it after the Berkeley guys, mostly Marc
>> Teitelbaum, put it into Posix.  It ended up getting dropped in favor
>> of the ksh $((...)) expansion, at which point everyone deprecated the
>> old $[...].  I removed it from the manual sometime later, but it still
>> works as it always has.

This all remains true. I probably won't remove it, but nobody should use it
in new code.


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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