Timeline for List of shells that support `local` keyword for defining local variables
Current License: CC BY-SA 4.0
27 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 1 at 13:19 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 426 characters in body
|
Jun 17, 2024 at 7:18 | history | rollback | Stéphane Chazelas |
Rollback to Revision 18
|
|
Jun 17, 2024 at 6:04 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 138 characters in body
|
Feb 20, 2022 at 18:31 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 10 characters in body
|
Feb 20, 2022 at 16:33 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 34 characters in body
|
Feb 20, 2022 at 16:07 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 79 characters in body
|
Jul 28, 2021 at 10:36 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 76 characters in body
|
Nov 25, 2020 at 13:08 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 64 characters in body
|
May 25, 2020 at 22:57 | comment | added | Nehal J Wani | I came here hunting for 'POSIX compatible way to use local' and found this: stchaz.free.fr/locvar.sh | |
Sep 11, 2019 at 8:26 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 723 characters in body
|
Sep 11, 2019 at 8:20 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 723 characters in body
|
Sep 10, 2019 at 5:33 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 37 characters in body
|
Jan 28, 2019 at 6:43 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
edited body
|
Jan 13, 2019 at 12:00 | vote | accept | mja | ||
Jan 13, 2019 at 10:38 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 124 characters in body
|
Jan 11, 2019 at 14:43 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 287 characters in body
|
Jan 11, 2019 at 14:26 | comment | added | Stéphane Chazelas |
See also web.archive.org/web/20000816225337if_/http://… where David Korn mentioned that support for functions in the Bourne shell was added in 1982 (1984 was when SVR2 was released) and the ksh function f { ....} predated that (ksh first announced in 1983 AFAIK).
|
|
Jan 11, 2019 at 14:20 | comment | added | Stéphane Chazelas | @Isaac, the best source of information about the Bourne shell is at in-ulm.de/~mascheck/bourne/index.html | |
Jan 11, 2019 at 14:13 | comment | added | Stéphane Chazelas |
@Isaac, it's f() any-command (except that if any-command is a simple command, it can't have redirections). The POSIX syntax is f() any-compound-command . {...} is both a command and compound command. The Bourne shell initially didn't have functions. Function support was added in SVR2 in 1984 with a different syntax from that of ksh (1983) which is what I'm saying here.
|
|
Jan 11, 2019 at 12:25 | comment | added | user232326 |
Bourne (heirloom version) supports functions as f() { list; } .
|
|
Jan 11, 2019 at 7:42 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
edited body
|
Jan 10, 2019 at 17:51 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
edited body
|
Jan 10, 2019 at 17:45 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
edited body
|
Jan 10, 2019 at 16:56 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 643 characters in body
|
Jan 10, 2019 at 15:49 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 130 characters in body
|
Jan 10, 2019 at 15:38 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 655 characters in body
|
Jan 10, 2019 at 15:29 | history | answered | Stéphane Chazelas | CC BY-SA 4.0 |