From 30726f56c8c522e81e65055ada52f56d95f68575 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 1 Sep 2026 05:37:17 +0000 Subject: string util --- src/main.cc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/main.cc') diff --git a/src/main.cc b/src/main.cc index 04aca2a..d7719b2 100644 --- a/src/main.cc +++ b/src/main.cc @@ -18,6 +18,8 @@ #include "ground.h" #include "eval.h" #include "path.h" +#include "util/string.h" +#include "test.h" using namespace std; using namespace ov4; @@ -43,12 +45,6 @@ handler_t *Signal(int signum, handler_t *handler); // built-in commands void builtin_command_quit(); -void test() -{ - cout << find_cmd("ls") << endl; - exit(0); -} - /* * main - The shell's main routine */ @@ -59,7 +55,7 @@ You are using ccshell. \n\ This is free software; see the source for copying conditions. \ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. \n\ Published under GNU AFFERO GENERAL PUBLIC LICENSE (AGPL) Version 3." << endl; - //test(); + //test(argv); init(); char c; char cmdline[MAXLINE]; -- cgit v1.3.1-4-g156e