shell: implement echo command

This commit is contained in:
S.J.R. van Schaik 2017-07-27 10:44:52 +02:00
parent c6f3e0e421
commit 6dcf58a25d
3 changed files with 19 additions and 0 deletions

15
source/shell/echo.c Normal file
View file

@ -0,0 +1,15 @@
#include <stdio.h>
#include <console.h>
#include <shell/echo.h>
void shell_echo(struct console *con, const char **argv, size_t argc)
{
if (argc < 1)
return;
fprintf(con->fp, "%s\n", argv[0]);
}