|
From: | Padraig Brady |
Subject: | Re: bash uses stderr instead of /dev/tty ? |
Date: | Thu, 12 Jul 2001 23:06:56 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010628 |
Replying to myself, the following patch adds the --tty-prompt option to bash, which does as explained below. This allows me to "exec 2> someplace" and get desired results. Is there any issues with doing this? Quick testing showed no problems. To apply patch: cd bash-2.05 patch -p1 <bash-2.05-tty-prompt.diff cheers, Padraig. Padraig Brady wrote:
Why does bash print it's prompt/command line to stderr and not /dev/tty? This is silly in my opinion. I noticed it when I tried to redirect stderr to someplace (a colorizing program) as follows: exec 2> someplace When I did this, everything worked fine, except the prompt and command line were put in someplace which I didn't want. cheers, Padraig.
[Prev in Thread] | Current Thread | [Next in Thread] |