I want my shell to detect if human behavior, then show the prompt.
So, assume the file name is test.bash
#!/bin/bash if [ \"x\" != \"${PS1:-x}\" ] ;t
to elaborate, I would try
if [ -t 0 ] ; then # this shell has a std-input, so we're not in batch mode ..... else # we're in batch mode .... fi
I hope this helps.