You are not logged in.
Pages: 1
Hi,
I'm having trouble with a variety of scenarios where I'm getting the message "Too many errors from stdin" presumably from nano.
The issue occurs for instance when using the man command or when issuing the help function from Python but also happened in other cases that don't come up to my mind right now.
Example:
$ man ping
Too many errors from stdin
Buffer written to nano.save.7
man: command exited with status 1: sed -e '/^[[:space:]]*$/{ N; /^[[:space:]]*\n[[:space:]]*$/D; }' | (cd <fd 3> && LESS=-ix8RmPm Manual page ping(8) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$PM Manual page ping(8) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$-R MAN_PN=ping(8) nano)
$ python
Python 3.6.4 (default, Jan 5 2018, 02:35:40)
[GCC 7.2.1 20171224] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> help(dict)
Too many errors from stdin
Buffer written to nano.save.6
>>> It appears to happen on many interactive texts from the shell (that presumably make use of nano?).
Does not occur with programs like less or more.
The files produced because of the errors (e.g. nano.save.6) do actually contain the expected text (help(dict) in the latter example).
P.S. This is my first post on the Arch Forum, please let me know if I'm doing anything wrong.
Offline
Give us you `env` output.
Offline
Here it is:
LANG=en_US.utf8
GDM_LANG=en_US.utf8
DISPLAY=:0
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
XDG_VTNR=7
XDG_SESSION_ID=c2
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/...
USER=...
DESKTOP_SESSION=i3
HOME=/home/...
XDG_SESSION_TYPE=x11
XDG_SESSION_DESKTOP=i3
DESKTOP_STARTUP_ID=i3/i3-sensible-terminal/528-30-..._TIME6936216
GTK_MODULES=canberra-gtk-module
_JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
MAIL=/var/spool/mail/...
SHELL=/usr/bin/zsh
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_CURRENT_DESKTOP=i3
SHLVL=2
XDG_SEAT=seat0
GDMSESSION=i3
LOGNAME=...
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_RUNTIME_DIR=/run/user/1000
XAUTHORITY=/home/.../.Xauthority
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:~/.vim/bundle/vim-live-latex-preview/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
WINDOWID=12582922
COLORFGBG=7;default;0
COLORTERM=rxvt-xpm
TERM=rxvt-unicode-256color
RANGER_LEVEL=1
ESCDELAY=25
PAGER=nano
EDITOR=nano
_=/usr/bin/env
ZSH=/home/.../.oh-my-zsh
LESS=-R
LC_CTYPE=en_US.utf8
LSCOLORS=Gxfxcxdxbxegedabagacad
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
VISUAL=nanoOffline
ZSH=/home/.../.oh-my-zsh
Makes sense. Does your issue disappear if you remove this crap?
Offline
While I agree that oh-my-zsh is trouble, that is not the cause here. The cause quite clearly is that you are setting nano as your PAGER. Nano is *not* a pager.
This is easy to replicate by sending any short file or text stream to nano's stdin.
EDIT: It might be possible to use nano as a pager with PAGER='nano -' but this still seems like a bad idea. But just nano itself will definitely not work.
Last edited by Trilby (2018-03-18 00:11:07)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thanks, guys, that fixed the problem.
Offline
Pages: 1