Implement shell builtins: cd, exec, umask (issue #15)

Add builtin dispatch in lcmd.c that checks __builtins table before
fork(), so cd/exec/umask operate on the shell process itself.
This commit is contained in:
Cormac Shannon
2026-03-04 19:20:42 +00:00
parent e8756d5d78
commit 4cc352cbec
7 changed files with 431 additions and 3 deletions

14
lbuiltin.h Normal file
View File

@@ -0,0 +1,14 @@
/*
** $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