mirror of
https://github.com/JannisHeydemann/BoredOS.git
synced 2026-05-30 10:26:59 +00:00
@@ -210,9 +210,6 @@ void cli_cmd_echo(char *args) {
|
||||
}
|
||||
|
||||
void cli_cmd_cat(char *args) {
|
||||
// Skip leading whitespace
|
||||
while (args && *args == ' ') args++;
|
||||
|
||||
if (!args || args[0] == 0) {
|
||||
cli_write("Usage: cat <filename>\n");
|
||||
return;
|
||||
@@ -256,7 +253,7 @@ void cli_cmd_touch(char *args) {
|
||||
|
||||
char filename[256];
|
||||
int i = 0;
|
||||
while (args[i] && args[i] != ' ' && args[i] != '\t' && args[i] != '\n') {
|
||||
while (args[i] && args[i] != ' ' && args[i] != '\t') {
|
||||
filename[i] = args[i];
|
||||
i++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user