diff --git a/bin/echo/opts/main_echo.c b/bin/echo/opts/main_echo.c index 1e27871..78f22a2 100644 --- a/bin/echo/opts/main_echo.c +++ b/bin/echo/opts/main_echo.c @@ -15,12 +15,12 @@ ** along with BoneOS. If not, see . ** ** @main_author : Amanuel Bogale - ** + ** ** @contributors: ** Amanuel Bogale : start - **/ - + **/ + #include #include #include @@ -35,32 +35,34 @@ int main_echo_opt_handler(char *cmd) size_t num_opts = get_opt_count(cmd); str_t opts[num_opts]; get_opt(cmd,opts); - + char opts_one_key[strlen(opts[1].str)]; - + for(int i=0; opts_one_key[i]; i++) opts_one_key[i] = 0; - + if(strcmp(opts[1].str , "--help")==0) printk(cmd_echo.help); else if(num_opts >= 2) { - if(opts[1].str[0] == '\'' && opts[num_opts-1].str[(strlen(opts[1].str)-1)] == '\'') + if(opts[1].str[0] == '\'' && opts[num_opts-1].str[(strlen(opts[num_opts-1].str)-1)] == '\'') { for(size_t i=1; i