Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store the Cell containing ARGV instead of the ARGV table itself. #230

Merged
merged 1 commit into from
May 4, 2024

Conversation

millert
Copy link
Contributor

@millert millert commented May 1, 2024

The underlying table (array) may change due to, for example, "delete ARGV". However, the Cell that stores ARGV should not change. Also remove the ENVtab global which is never used outside of envinit(). Fixes issue #229.

@arnoldrobbins
Copy link
Collaborator

@millert Can you please add a regression test to the test suite? Thanks!

@millert
Copy link
Contributor Author

millert commented May 2, 2024

@arnoldrobbins I added a test to testdir/T.argv that crashes on Linux (or OpenBSD) without the fix.

@plan9
Copy link
Collaborator

plan9 commented May 2, 2024

thanks todd.

@arnoldrobbins
Copy link
Collaborator

And I will also echo thanks here. :-)

testdir/T.argv Show resolved Hide resolved
The underlying table (array) may change due to, for example, "delete
ARGV".  However, the Cell that stores ARGV should not change.  Also remove
the ENVtab global which is never used outside of envinit().
Fixes issue onetrueawk#229.
@plan9 plan9 merged commit dbfe412 into onetrueawk:staging May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants