On Sat, 14 Mar 2015 15:17:24 +0100, kont...@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.