mirror of
https://github.com/JannisHeydemann/BoredOS.git
synced 2026-05-30 10:26:59 +00:00
V1.40
[FEATURE UPDATE] I changed out the memory based fat32 filesystem for one that runs on a 512mb disk img made during the make command (only get's made if the disk.img file is nonexistent) allowing files to be permanent. Also all these files combined are 67 files.. just fyi.
This commit is contained in:
@@ -210,6 +210,9 @@ 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;
|
||||
@@ -253,7 +256,7 @@ void cli_cmd_touch(char *args) {
|
||||
|
||||
char filename[256];
|
||||
int i = 0;
|
||||
while (args[i] && args[i] != ' ' && args[i] != '\t') {
|
||||
while (args[i] && args[i] != ' ' && args[i] != '\t' && args[i] != '\n') {
|
||||
filename[i] = args[i];
|
||||
i++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user