Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER) | |
| void | shell (void) |
| Start command shell. | |
Definition in file shell.h.
| FILE_LICENCE | ( | GPL2_OR_LATER | ) |
| void shell | ( | void | ) |
Start command shell.
Definition at line 91 of file shell.c.
References exit_flag, free(), readline(), shell_prompt, and system().
Referenced by main().
00091 { 00092 char *line; 00093 00094 exit_flag = 0; 00095 while ( ! exit_flag ) { 00096 line = readline ( shell_prompt ); 00097 if ( line ) { 00098 system ( line ); 00099 free ( line ); 00100 } 00101 } 00102 }
1.5.7.1