We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94e7636 commit 94585d9Copy full SHA for 94585d9
src/c/shell.c
@@ -72,8 +72,7 @@ int runShell() {
72
} else if (strncmp("ln", argv[0], MAXIMUM_CMD_LEN) == 0) {
73
if (argc != 3) {
74
interrupt(0x21, 0,
75
- "Penggunaan: ln <path/sumber> <path/tujuan>\n",
76
- 0, 0);
+ "Penggunaan: ln <path/sumber> <path/tujuan>\n", 0, 0);
77
} else {
78
hardLink(cwdIdx, argv[1], argv[2]);
79
}
@@ -92,8 +91,7 @@ int runShell() {
92
91
} else if (strncmp("cp", argv[0], MAXIMUM_CMD_LEN) == 0) {
93
94
95
- "Penggunaan: cp <path/sumber> <path/tujuan>\n",
96
+ "Penggunaan: cp <path/sumber> <path/tujuan>\n", 0, 0);
97
98
cp(cwdIdx, argv[1], argv[2]);
99
@@ -217,6 +215,7 @@ void listDir(char parentIndex) {
217
215
while (i < 1024) {
218
216
if (*(dir + i) == parentIndex && *(dir + i + 2) != 0) {
219
interrupt(0x21, 0, dir + i + 2, 0, 0);
+ if (*(dir + i + 1) == '\xFF') interrupt(0x21, 0, "/", 0, 0);
220
interrupt(0x21, 0, "\n", 0, 0);
221
222
i += 16;
0 commit comments