From: Phred Phungus on
Stefan Ram wrote:
> BigBrother <cowboyninja(a)gmail.com> writes:
>> I'm trying to build a very basic shell
>
> Here's my very basic shell:
>
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
>
> int main( void )
> { char buff[ 1000 ]; for( int looping = 1; looping; )
> { putchar( '$' ); fflush( stdout ); scanf( "%999s", buff );
> if( strcmp( buff, "exit" ))system( buff ); else looping = 0; }}
>

That's ghastly.
--
fred