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

Wrong return type for os.execute #154

Open
rillig opened this issue May 20, 2023 · 0 comments
Open

Wrong return type for os.execute #154

rillig opened this issue May 20, 2023 · 0 comments

Comments

@rillig
Copy link

rillig commented May 20, 2023

Environment

Luanalysis version: 1.4.0
Language level: 5.0, 5.1, 5.2, 5.3, 5.4

What are the steps to reproduce this issue?

  1. local ok, kind, info = os.execute("echo")

What happens?

  • The return variables kind and info are marked with 'Too many assignees, will be assigned nil.'.

What were you expecting to happen?

  • The declared return type for os.execute matches the textual description in the std documentation, which suggests something like true | nil, string, number, or, when it is called without a command, bool.
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

No branches or pull requests

1 participant