tb %PID builtin command

This commit is contained in:
2025-09-29 21:37:48 +02:00
parent 4e8afae5fb
commit 46e52c8d48
4 changed files with 12 additions and 2 deletions

View File

@ -4,6 +4,8 @@
#include "runtime.h"
#include "interp.h"
extern PID_t PID;
RtCmd *RTCMDS = NULL;
RtAlias *RTALIASES = NULL;
@ -45,7 +47,13 @@ bool rt_mkalias(Token *tks) {
return true;
}
bool rt_PID(Token *tks) {
uprintf("%lu\n", PID);
return true;
}
void rt_init(void) {
RTCMD("%print", &rt_print);
RTCMD("%mkalias", &rt_mkalias);
RTCMD("%PID", &rt_PID);
}