I have written a bash script. When the user inputs no data, the script displays sends an error message to stdout and kills the process. That is working well. The user gets the error message, and the next line says "Killed." I want to stop "Killed" from being displayed at all. In other words, I want the user to get the error message and be dumped back into the ordinary bash prompt, without seeing "killed" or "terminated" or anything else.
I have spent an hour playing around with redirecting the output of the kill command to /dev/null, and I'm pretty sure that at this point I have tried all of the possible variations . . . except the correct one, which I cannot seem to determine. Can someone help me out?
Many thanks.
I have spent an hour playing around with redirecting the output of the kill command to /dev/null, and I'm pretty sure that at this point I have tried all of the possible variations . . . except the correct one, which I cannot seem to determine. Can someone help me out?
Many thanks.
Comment