i am trying to create a shell that get it's commands via socket/pipe and returned the stderr and stdout to the same/ different pip/socket. i don't want to use exec becase i want to allow action such as cd (change directory) that have to be interactive
cd
doesn't have to be used interactively. By interactive, do you mean that a prompt would have to be issued for instance? Would you expect job control (which needs a terminal device) to work as well?