On 10/6/17 8:08 AM, Joerg Schilling wrote:
> Chet Ramey <chet.ra...@case.edu> wrote:
> 
>> ksh had functions dating from the early 1980s in its original incarnation
>> as a form interpreter. Korn mentions functions as one of the first things
>> he added to the Bourne shell. I don't know whether ksh-83 had the SVR2
>> function declaration syntax in addition to `function name', but ksh-86
>> certainly did.
> 
> Given that functions appeared in the Bourne Shell in 1984, a ksh from 1983 
> did 
> most likely not support a compatible syntax.

Maybe. Bourne added functions to the research version of the shell years
before they appeared in the SVR2 sh (1984), and Korn certainly had access
to that. But we'll never know unless someone digs up ksh-83 sources.

Chet

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

Reply via email to