git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Report of use of "local" per t0000-basic.sh

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Nov 23, 2019, 04:16 UTC
Message-ID
<20191123041616.GD6430@camp.crustytoothpaste.net>
In-Reply-To
<03ad01d5a167$a834e580$f89eb080$@nexbridge.com>
On 2019-11-22 at 19:04:19, Randall S. Becker wrote:
Show 5 quoted lines
> Hi All,
> 
> Based on the note in t0000-basic.sh below, I am just letting you know that I
> have encountered a lack of support for the "local" on the z/OS 2.3 USS
> platform except within a function. I thought you might want to know.

I think it's fine that we restrict the use of local to within a function. In fact, dash (Debian and Ubuntu's default /bin/sh) exits unsuccessfully if you use local outside of a function.

Is there some place in particular that you've found we're using it outside of a function? I don't know about others, but I'm certainly interested in fixing these. It looks like we do use it in a function in t0000 itself, though.

-- 
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204
Previous: Randall S. BeckerNext: Junio C Hamano
Message 2 of 4 in “Report of use of "local" per t0000-basic.sh”
  1. Randall S. BeckerNov 22, 2019
  2. brian m. carlsonNov 23, 2019
  3. Junio C HamanoNov 24, 2019
  4. Randall S. BeckerNov 25, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.