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

popen: support nil in second argument #460

Merged
merged 1 commit into from Oct 14, 2023
Merged

Commits on Oct 10, 2023

  1. popen: support nil in second argument

    In the C implementation of the Lua interpreter,
    in the io.popen function the second argument can be nil:
    
    Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio:
    
    > x,y = io.popen("ls", nil)
    > assert(x)
    > assert(y == nil)
    >
    
    Gopher lua throws an exception:
    bad argument yuin#2 to popen (string expected, got nil)
    
    Closes yuin#459
    0x501D committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    1543e9d View commit details
    Browse the repository at this point in the history