Removes dofile() from Lua #732

merged 1 commit into from May 8, 2016

2 participants


Removed dofile function from the Lua environment.

dofile() called without arguments reads from STDIN and blocks and never finishes.

dofile called with file arguments can be used to determine if files exist or not, as well as it's probably not good to read scripts from disk for atomic operations.

@antirez antirez merged commit b44ad30 into antirez:unstable May 8, 2016

Thanks! Merged.


Backported to 3.0 / 3.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment