8b58e81077
better parsing of sh commands (copied from jos sh) cat: read from 1 if no args sbrk system call, but untested getpid system call moved locks in keyboard intr, but why do we get intr w. null characters from keyboard?
17 lines
194 B
C
17 lines
194 B
C
#include "types.h"
|
|
#include "stat.h"
|
|
#include "user.h"
|
|
|
|
int
|
|
main(int argc, char *argv[])
|
|
{
|
|
int i;
|
|
|
|
for(i = 1; i < argc; i++){
|
|
puts(argv[i]);
|
|
puts(" ");
|
|
}
|
|
puts("\n");
|
|
exit();
|
|
}
|