После запуска сценариев Ruby почти 100% времени командная строка bash будет выглядеть неактивной, хотя фактически она молча принимает нажатия клавиш, не показывая их мне.
Это произошло с несколькими версиями Ruby через несколько обновлений ОС; на данный момент я использую v1.9.2p29 на OS X 10.9.2. resetисправляет проблему; clearи др. нет.
«Теперь нет» и т. Д. Ниже - это результат невидимых echoкоманд.
$ echo Now you see my typing... Now you see my typing... $ bundle exec jekyll build ... done. $ This is the output of an unseen echo command $ About to run "reset" $ echo And we''re back. And we're back. stty -a вывод, когда все работает:
speed 9600 baud; 57 rows; 187 columns; lflags: icanon isig -iexten echo echoe echok echoke -echonl echoctl -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo -extproc iflags: -istrip icrnl -inlcr -igncr ixon -ixoff -ixany imaxbel iutf8 -ignbrk brkint -inpck ignpar -parmrk oflags: opost onlcr oxtabs onocr onlret cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf cchars: discard = ^O; dsusp = <undef>; eof = ^D; eol = <undef>; eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q; status = <undef>; stop = ^S; susp = ^Z; time = 0; werase = ^W; stty -a вывод, когда вещи не:
speed 9600 baud; 57 rows; 187 columns; lflags: -icanon isig -iexten -echo echoe -echok echoke -echonl echoctl -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo -extproc iflags: -istrip icrnl inlcr -igncr ixon -ixoff -ixany imaxbel iutf8 -ignbrk brkint -inpck ignpar -parmrk oflags: opost onlcr oxtabs onocr onlret cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf cchars: discard = ^O; dsusp = <undef>; eof = <undef>; eol = <undef>; eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = <undef>; min = 1; quit = ^\; reprint = <undef>; start = ^Q; status = <undef>; stop = ^S; susp = ^Z; time = 0; werase = <undef>; Я замечаю, в частности, что в lflags, echoстало -echo.
Не уверен, что вызывает это, или какие другие настройки / диагностику я должен проверить.
один и тот же вопрос задавайте по другому: http://apple.stackexchange.com/q/122964/7057