unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* --batch: mention how to write to stdout
@ 2004-11-27  3:28 Dan Jacobson
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Jacobson @ 2004-11-27  3:28 UTC (permalink / raw)


In info we note
`--batch'
     Run Emacs in "batch mode", which means that the text being edited
     is not displayed and the standard terminal interrupt characters
     such as `C-z' and `C-c' continue to have their normal effect.
     Emacs in batch mode outputs to `stderr' only what would normally

stderr is mentioned

     be displayed in the echo area under program control, and functions
     which would normally read from the minibuffer take their input
     from `stdin'.

stdin is mentioned

But stdout is not mentioned, so users can't figure out how to use it,
and end up using e.g.,
emacs -batch -eval '(progn(bbdb "." t)(other-window 1)(write-file "/dev/stdout"))'

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

* Re: --batch: mention how to write to stdout
       [not found] <mailman.1728.1101528976.27204.bug-gnu-emacs@gnu.org>
@ 2004-11-27 23:04 ` Thien-Thi Nguyen
  2004-11-28 20:57   ` Dan Jacobson
  0 siblings, 1 reply; 3+ messages in thread
From: Thien-Thi Nguyen @ 2004-11-27 23:04 UTC (permalink / raw)


Dan Jacobson <jidanni@jidanni.org> writes:

> (write-file "/dev/stdout")

$ emacs -batch -eval '(message "foo")' 2>&1 | wc
    1    1    4

thi

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

* Re: --batch: mention how to write to stdout
  2004-11-27 23:04 ` Thien-Thi Nguyen
@ 2004-11-28 20:57   ` Dan Jacobson
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Jacobson @ 2004-11-28 20:57 UTC (permalink / raw)


>>>>> "T" == Thien-Thi Nguyen <ttn@gnu.org> writes:
T> $ emacs -batch -eval '(message "foo")' 2>&1 | wc
T>     1    1    4
$  emacs -batch -eval '(message "foo")' 2>&1 | wc
     34     102    1227
I said stdout, not stderr, dangnabbit.  The user wants to read how
to e.g., send the current buffer to stdout.

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

end of thread, other threads:[~2004-11-28 20:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-27  3:28 --batch: mention how to write to stdout Dan Jacobson
     [not found] <mailman.1728.1101528976.27204.bug-gnu-emacs@gnu.org>
2004-11-27 23:04 ` Thien-Thi Nguyen
2004-11-28 20:57   ` Dan Jacobson

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).