zsh-workers
 help / color / mirror / code / Atom feed
* Pasting of long lines to ZLE is buggy under Mac OS X
@ 2008-10-02  6:55 Vincent Lefevre
  2008-10-02  8:17 ` Stephane Chazelas
  0 siblings, 1 reply; 6+ messages in thread
From: Vincent Lefevre @ 2008-10-02  6:55 UTC (permalink / raw)
  To: zsh-workers

It seems that zsh 4.3.6 suffers from a buffering problem when pasting
long lines under Mac OS X (at least 10.4.11). Other software, such as
bash and emacs (running in a terminal), does not seem to have such a
problem.

For instance, when I paste

/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -DGNOMELOCALEDIR=\"/opt/local/share/locale\" -DGNOME_DESKTOP_SYSCONFDIR=\"/opt/local/etc\" -DGNOME_DESKTOP_PIXMAPDIR=\"/opt/local/share/pixmaps\" -DGNOME_DESKTOP_ICONDIR=\"/opt/local/share/icons\" -DGNOME_CORE_INTERNAL -DDATADIR=\"/opt/local/share/gnome-desktop\" -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -I/usr/X11R6/include -DXTHREADS -DORBIT2=1 -D_REENTRANT -I/opt/local/include/libxml2 -I/opt/local/include/gtk-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include/libgnomeui-2.0 -I/opt/local/include/libart-2.0 -I/opt/local/include/gconf/2 -I/opt/local/include/gnome-keyring-1 -I/opt/local/include/libgnome-2.0 -I/opt/local/include/libbonoboui-2.0 -I/opt/local/include/libgnomecanvas-2.0 -I/opt/local/include/gnome-vfs-2.0 -I/opt/local/lib/gnome-vfs-2.0/include -I/opt/local/include/orbit-2.0 -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/libbonobo-2.0 -I/opt/local/include/bonobo-activation-2.0 -I/opt/local/include/gail-1.0 -I/opt/local/include/startup-notification-1.0 -I/opt/local/include -O2 -MT gnome-rr.lo -MD -MP -MF .deps/gnome-rr.Tpo -c gnome-rr.c  -fno-common -DPIC -o .libs/gnome-rr.o

(1507 characters) to iTerm running zsh, I get:

/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -DGNOMELOCALEDIR=\"/opt/local/share/locale\" -DGNOME_DESKTOP_SYSCONFDIR=\"/opt/local/etc\" -DGNOME_DESKTOP_PIXMAPDIR=\"/opt/local/share/pixmaps\" -DGNOME_DESKTOP_ICONDIR=\"/opt/local/share/icons\" -DGNOME_CORE_INTERNAL -DDATADIR=\"/opt/local/share/gnome-desktop\" -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -I/usr/X11R6/include -DXTHREADS -DORBIT2=1 -D_REENTRANT -I/opt/local/include/libxml2 -I/opt/local/include/gtk-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include/libgnomeui-2.0 -I/opt/local/include/libart-2.0 -I/opt/local/include/gconf/2 -I/opt/local/include/gnome-keyring-1 -I/opt/local/include/libgnome-2.0 -I/opt/local/include/libbonoboui-2.0 -I/o

which corresponds to the first 1024 characters. If I paste to xterm
(also running zsh), I get something like:

/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -DGNOMELOCALEDIR=\"/opt/local/share/locale\" -DGNOME_DESKTOP_SYSCONFDIR=\"/opt/local/etc\" -DGNOME_DESKTOP_PIXMAPDIR=\"/opt/local/share/pixmaps\" -DGNOME_DESKTOP_ICONDIR=\"/opt/local/share/icons\" -DGNOME_CORE_INTERNAL -DDATADIR=\"/opt/local/share/gnome-desktop\" -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -I/usr/X11R6/include -DXTHREADS -DORBIT2=1 -D_REENTRANT -I/opt/local/include/libxml2 -I/opt/local/include/gtk-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include/libgnomeui-2.0 -I/opt/local/include/libart-2.0 -I/opt/local/include/gconf/2 -I/opt/local/include/gnome-keyring-1 -I/opt/local/include/libgnome-2.0 -I/opt/local/include/libbonoboui-2.0 -I/opt/local/include/libgnomecanvas-2.0 -I/opt/local/include/gnome-vfs-2.0 -I/opt/local/lib/gnome-vfsde/olu-MT

(here 1130 characters, but this varies).

I don't know if this is related, but I've just discovered that
"cooked mode" (e.g. after typing "cat") is limited to 1024 characters
(including the final newline) under Mac OS X!

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-10-19 22:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-02  6:55 Pasting of long lines to ZLE is buggy under Mac OS X Vincent Lefevre
2008-10-02  8:17 ` Stephane Chazelas
2008-10-02 15:36   ` Bart Schaefer
2008-10-03  8:36   ` Vincent Lefevre
2008-10-16  5:57     ` Bart Schaefer
2008-10-19 22:18       ` Vincent Lefevre

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).