I\'m writting a bash wrapper to learn some scripting concepts. The idea is to write a script in bash and set it as a user\'s shell at login.
I made a while loop that
You could use a tool like xdotool to send Ctrl-A (begin-of-line) Ctrl-K (delete-to-end-of-line) Return (to cleanup the line)
#!/bin/bash
trap "xdotool key Ctrl+A Ctrl+k Return" SIGINT;
unset command
while [ "$command" != "quit" ] ;do
eval $command
read -e -p "$USER - SHIELD: `pwd`> " command
done
trap SIGINT
But I strongly invite you to rtfm... In searching for ``debug'' keyword...
man -Pless\ +/debug bash