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