GROOVY-6201: groovysh hangs on Edit command when using terminal editor (vim, nano, etc.) on posix terminals