# from Andreas J. Koenig # on Friday 02 March 2007 03:10 am: >If >the user redirects the prompt to /dev/null, then he deliberately >shoots himself in the foot and there is no way to find that out.
Ok, pretend I said "> /tmp/foo" or "| thbbt" in the example. In all three cases, it should not be prompting without a non-terminal STDIN. The user didn't shoot his foot, he just told the computer to not bother him with silly things like output. Remember, STDOUT is part of the _is_interactive() question, STDIN only becomes involved if STDOUT is not a terminal, at which point we check to see if there is a scripted set of answers being piped in. --Eric -- "It works better if you plug it in!" --Sattinger's Law --------------------------------------------------- http://scratchcomputing.com ---------------------------------------------------