
Programme exits whenever the 'exit' word is detected even if there are commands at the back. Since you have a similar command called 'edit', if users accidentely write x instead of d, the programme would still exit which would be inconvenient. Perhaps you could check to see if it is just the command 'exit' with no other words behind before exiting.
Programme exits whenever the 'exit' word is detected even if there are commands at the back. Since you have a similar command called 'edit', if users accidentely write x instead of d, the programme would still exit which would be inconvenient. Perhaps you could check to see if it is just the command 'exit' with no other words behind before exiting.