checkwinsize in bash