Add builtin dispatch in lcmd.c that checks __builtins table before fork(), so cd/exec/umask operate on the shell process itself.
15 lines
199 B
C
15 lines
199 B
C
/*
|
|
** $Id: lbuiltin.h $
|
|
** Shell builtins (cd, exec, umask)
|
|
** See Copyright Notice in lua.h
|
|
*/
|
|
|
|
#ifndef lbuiltin_h
|
|
#define lbuiltin_h
|
|
|
|
#include "lua.h"
|
|
|
|
void luaopen_builtins(lua_State *L);
|
|
|
|
#endif
|