bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash hangs when using exec 2>...


From: Davide Brini
Subject: Re: bash hangs when using exec 2>...
Date: Sat, 14 Mar 2015 15:44:58 +0100

On Sat, 14 Mar 2015 15:17:24 +0100, kontakt@marcbihlmaier.de wrote:

> Description:
>         exec hangs up when using "exec 2>SOMETHING". Just tested on
> Ubuntu 14.04, Ubuntu 12.04, Debian7
>         working when just using "exec 1>SOMETHING"
> 
> Repeat-By:
>         using in a script for logging
>         or just try it in bash or dash 
> 
> Fix:
>         Dont't know how to fix it
>         Just using the workaround with "PATH/SCRIPT 2>SOMETHING" which
> does not use exec

It's not hanging, it's just that bash uses fd 2 to show the prompt and
what the user types. Try typing a command and hitting enter while bash seems
to be "hung".

Alternatively, do a cat SOMETHING in another console, and you'll see the
prompts and the commands you typed.


-- 
D.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]