| 299 | MSH_CMD_EXPORT_ALIAS(cmd_mv, mv, Rename SOURCE to DEST.); |
| 300 | |
| 301 | static int cmd_cat(int argc, char **argv) |
| 302 | { |
| 303 | int index; |
| 304 | extern void cat(const char *filename); |
| 305 | |
| 306 | if (argc == 1) |
| 307 | { |
| 308 | rt_kprintf("Usage: cat [FILE]...\n"); |
| 309 | rt_kprintf("Concatenate FILE(s)\n"); |
| 310 | return 0; |
| 311 | } |
| 312 | |
| 313 | for (index = 1; index < argc; index ++) |
| 314 | { |
| 315 | cat(argv[index]); |
| 316 | } |
| 317 | |
| 318 | return 0; |
| 319 | } |
| 320 | MSH_CMD_EXPORT_ALIAS(cmd_cat, cat, Concatenate FILE(s)); |
| 321 | |
| 322 | static void directory_delete_for_msh(const char *pathname, char f, char v) |
nothing calls this directly
no test coverage detected