*polished shell.
This commit is contained in:
parent
029ba170cd
commit
3afe5b7e03
3
HISTORY
3
HISTORY
@ -1,3 +1,6 @@
|
|||||||
|
Dec. 22 2016
|
||||||
|
Improved shell prompting when removing a non-exist file
|
||||||
|
|
||||||
Dec. 21 2016
|
Dec. 21 2016
|
||||||
Improved parsing context maintaining
|
Improved parsing context maintaining
|
||||||
|
|
||||||
|
@ -927,7 +927,13 @@ static void _kill_program(const char* path) {
|
|||||||
if(!unlink(path)) {
|
if(!unlink(path)) {
|
||||||
_printf("Delete file \"%s\" successfully.\n", path);
|
_printf("Delete file \"%s\" successfully.\n", path);
|
||||||
} else {
|
} else {
|
||||||
|
FILE* fp = fopen(path, "rb");
|
||||||
|
if(fp) {
|
||||||
|
fclose(fp);
|
||||||
_printf("Delete file \"%s\" failed.\n", path);
|
_printf("Delete file \"%s\" failed.\n", path);
|
||||||
|
} else {
|
||||||
|
_printf("File \"%s\" not found.\n", path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user