diff --git a/base/scripts/init.tb b/base/scripts/init.tb index 4d715a9..a0e76d9 100644 --- a/base/scripts/init.tb +++ b/base/scripts/init.tb @@ -1,3 +1,3 @@ -@print "this is an init script!" +%print "this is an init script!" base:/bin/pctl ls base:/bin/tb -m interactive -preload base:/scripts/rc.tb diff --git a/base/scripts/rc.tb b/base/scripts/rc.tb index ea26b4c..758b976 100644 --- a/base/scripts/rc.tb +++ b/base/scripts/rc.tb @@ -1,2 +1,2 @@ -@mkalias pctl base:/bin/pctl -@mkalias tb base:/bin/tb +%mkalias pctl base:/bin/pctl +%mkalias tb base:/bin/tb diff --git a/user/tb/interp.c b/user/tb/interp.c index 25336f5..b293fb5 100644 --- a/user/tb/interp.c +++ b/user/tb/interp.c @@ -67,7 +67,7 @@ void tz_classify(Tokenizer *tz) { while (tk) { if (tk->ptr[0] == '"' && tk->ptr[tk->len - 1] == '"') { tk->type = TOK_STRING; - } else if (tk->ptr[0] == '@') { + } else if (tk->ptr[0] == '%') { RtCmd *cmd = RTCMDS; while (cmd) { string_memset(tmpbuf, 0, tmpbufsz); diff --git a/user/tb/runtime.c b/user/tb/runtime.c index 94d636c..99071e0 100644 --- a/user/tb/runtime.c +++ b/user/tb/runtime.c @@ -47,6 +47,6 @@ bool rt_mkalias(Token *tks) { } void rt_init(void) { - RTCMD("@print", &rt_print); - RTCMD("@mkalias", &rt_mkalias); + RTCMD("%print", &rt_print); + RTCMD("%mkalias", &rt_mkalias); }