all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* dired-do-shell-command munches all memory
@ 2003-10-07 21:37 Dan Jacobson
  2003-10-11  5:37 ` Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Jacobson @ 2003-10-07 21:37 UTC (permalink / raw)


Want to see emacs eat all the memory, on the machine and have to be
killed? Complete with with real grinding noises.
$ touch a
$ minizip x a
creating x.zip
$ minizip x a
The file x.zip exist. Overwrite ? [y]es, [n]o : n
Then in emacs, do
(dired-do-shell-command "minizip x" nil (quote ("a")))
emacs apparently loops on the above question. Emacs version is in my headers.
$ apt-cache show zlib-bin
Filename: pool/main/z/zlib/zlib-bin_1.1.4-14_i386.deb
Description: compression library - sample programs
 Some generally useful sample programs from the contrib directory.
 Includes a "mini" implementation of `zip' and `unzip' called
 `minizip' and `miniunzip' respectively.

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

* Re: dired-do-shell-command munches all memory
  2003-10-07 21:37 dired-do-shell-command munches all memory Dan Jacobson
@ 2003-10-11  5:37 ` Richard Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2003-10-11  5:37 UTC (permalink / raw)
  Cc: emacs-devel

    $ minizip x a
    The file x.zip exist. Overwrite ? [y]es, [n]o : n

    Then in emacs, do
    (dired-do-shell-command "minizip x" nil (quote ("a")))
    emacs apparently loops on the above question. Emacs version is in my headers.

This is because minizip spews unending output.  It does that when it
hits eof on stdin while asking the yes or no question.  I think that
is a bug in minizip; can you tell me who to report that to?

Meanwhile, perhaps it is a bug in Emacs that it runs out of memory
just because a subprocess generates unending output.  The question is,
what else should it do?  Perhaps when the output gets over a certain size,
ask the user whether to continue reading it.  What do people think?

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

end of thread, other threads:[~2003-10-11  5:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-07 21:37 dired-do-shell-command munches all memory Dan Jacobson
2003-10-11  5:37 ` Richard Stallman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.