unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9574: data-loss with --batch: ignored write failure
@ 2011-09-22 14:39 Jim Meyering
  2011-09-22 17:29 ` Glenn Morris
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Jim Meyering @ 2011-09-22 14:39 UTC (permalink / raw)
  To: 9574

This should diagnose the write failure and exit nonzero:

    emacs --version > /dev/full

Currently (latest from bzr trunk as of yesterday),
emacs exits 0 (successfully) and gives no diagnostic.
Obviously that doesn't matter too much, but this next one
can easily cause real trouble:

    $ emacs --batch --eval '(print "important")' > /dev/full && echo FAIL
    FAIL

I.e., the write fails and emacs fails to report that failure.

That means anything written via --batch to standard output may
be corrupted or incomplete, and emacs will still exit successfully.





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

end of thread, other threads:[~2012-11-04 17:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-22 14:39 bug#9574: data-loss with --batch: ignored write failure Jim Meyering
2011-09-22 17:29 ` Glenn Morris
2011-09-23  9:58 ` Andreas Schwab
2011-09-23 18:30   ` Glenn Morris
     [not found] ` <handler.9574.D9574.131677195627408.notifdone@debbugs.gnu.org>
2011-09-24  9:23   ` Jim Meyering
2012-04-17  1:58     ` Glenn Morris
2012-04-17  4:53       ` Paul Eggert
2012-10-29  9:27         ` Chong Yidong
2012-11-01 20:09           ` Paul Eggert
2012-11-04 17:19 ` bug#9574: patch installed Paul Eggert

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

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

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 read-only IMAP folder(s) and NNTP newsgroup(s).