Write a c program that will simulate a terminal shell. the program should have the name chshell.exe.
when the program starts it should show a prompt and wait for input from the user.
if the user presses enter it should go to the next line and show the prompt again. if the user types the word exit then the program will terminate.
for example:
> chsh.exe
chsh#
chsh#exit
>

Solved
Show answers

Ask an AI advisor a question