unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* emacs -nw hangs on redirect
@ 2003-11-04 13:43 Victor Lesk
  2003-11-05  1:06 ` Richard Stallman
       [not found] ` <mailman.3179.1067994861.21628.bug-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Victor Lesk @ 2003-11-04 13:43 UTC (permalink / raw)


Hi emacs,

I'm running emacs 21.2.1 on a linux ix86.

in bash, the command
emacs -nw > out.txt
hangs.

(the command emacs  > out.txt works fine).

Can you explain why/suggest a workaround?

Thank you

Victor Lesk

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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

* Re: emacs -nw hangs on redirect
       [not found] <mailman.3114.1067953597.21628.bug-gnu-emacs@gnu.org>
@ 2003-11-04 16:18 ` Barry Margolin
  0 siblings, 0 replies; 5+ messages in thread
From: Barry Margolin @ 2003-11-04 16:18 UTC (permalink / raw)


In article <mailman.3114.1067953597.21628.bug-gnu-emacs@gnu.org>,
Victor Lesk <victorlesk@hotmail.com> wrote:
>Hi emacs,
>
>I'm running emacs 21.2.1 on a linux ix86.
>
>in bash, the command
>emacs -nw > out.txt
>hangs.
>
>(the command emacs  > out.txt works fine).
>
>Can you explain why/suggest a workaround?

What are you trying to accomplish?  Emacs expects its stdin and stdout to
be a video terminal or emulator that it can perform cursor control on.  It
doesn't make much sense to redirect its output to a file.

If you want to capture the output of Emacs, run it inside a "script"
session.

-- 
Barry Margolin, barry.margolin@level3.com
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

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

* Re: emacs -nw hangs on redirect
  2003-11-04 13:43 emacs -nw hangs on redirect Victor Lesk
@ 2003-11-05  1:06 ` Richard Stallman
       [not found] ` <mailman.3179.1067994861.21628.bug-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 5+ messages in thread
From: Richard Stallman @ 2003-11-05  1:06 UTC (permalink / raw)
  Cc: bug-gnu-emacs

    I'm running emacs 21.2.1 on a linux ix86.

If it is capable of running Emacs, it must have more than just Linux
on it.  Linux is a kernel, and a kernel alone is not capable of
running programs like Emacs.  You must have the GNU/Linux operating
system installed.

When you call the entire system "Linux", you give the system's
principal developers none of the credit.  And yet here you are asking
us to help you out.  Please start treating us right.  (See
http://www.gnu.org/gnu/gnu-linux-faq.html for more explanation.)

    in bash, the command
    emacs -nw > out.txt
    hangs.

-nw tells emacs to use an ordinary tty.  I doubt it could manage with
a file that is not a tty.  Probably what you want is -batch.  Please
see the Emacs manual for documentation of these options.

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

* Re: emacs -nw hangs on redirect
       [not found] ` <mailman.3179.1067994861.21628.bug-gnu-emacs@gnu.org>
@ 2003-11-05  1:44   ` David Kastrup
  2003-11-07  1:01     ` Richard Stallman
  0 siblings, 1 reply; 5+ messages in thread
From: David Kastrup @ 2003-11-05  1:44 UTC (permalink / raw)


Richard Stallman <rms@gnu.org> writes:

>     I'm running emacs 21.2.1 on a linux ix86.
> 
> If it is capable of running Emacs, it must have more than just Linux
> on it.  Linux is a kernel, and a kernel alone is not capable of
> running programs like Emacs.  You must have the GNU/Linux operating
> system installed.

Actually, if I remember correctly, there are non-GNU environments for
Linux available too (certainly for some embedded systems, and I think
there was even a proof-of-concept BSD flavor system with a Linux
kernel).  But it would appear unlikely that he was using one of those.

> When you call the entire system "Linux", you give the system's
> principal developers none of the credit.

I would not go as far as to claim the kernel and system utility
developers are not also principal developers of the system.  And I
don't think that he was intending to give _anybody_ credit just by
trying to specify his system.  When somebody calls me just by my given
name, I don't assume that he is trying to give credit to the father of
Solomon for me, but denying my parents appreciation.

> And yet here you are asking us to help you out.  Please start
> treating us right.

If you talk for yourself, the proper pronoun to use here is "me".  He
was writing to an Emacs developer list, and I find it somewhat out of
balance to call all Emacs developers principal developers of GNU/Linux
systems while denying the kernel developers that title.

> (See http://www.gnu.org/gnu/gnu-linux-faq.html for more
> explanation.)

Quite so.  There is really not much point in repeating here what is
already available for perusal elsewhere and in a better reviewed (and
thus probably less misconstruable) form than what one can come up with
in a moment oneself.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

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

* Re: emacs -nw hangs on redirect
  2003-11-05  1:44   ` David Kastrup
@ 2003-11-07  1:01     ` Richard Stallman
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Stallman @ 2003-11-07  1:01 UTC (permalink / raw)
  Cc: gnu-emacs-bug

    Actually, if I remember correctly, there are non-GNU environments for
    Linux available too (certainly for some embedded systems, and I think
    there was even a proof-of-concept BSD flavor system with a Linux
    kernel).  But it would appear unlikely that he was using one of those.

GNU is not an "environment for Linux".  GNU is an operating system
which we began developing in 1984.  Linux is a kernel that came along
many years later and is typically used together with GNU.

It is possible to use Linux without the GNU system, but then you don't
have a Unix-like operating system, just a kernel.  That is only done
in embedded systems.

    > When you call the entire system "Linux", you give the system's
    > principal developers none of the credit.

    I would not go as far as to claim the kernel and system utility
    developers are not also principal developers of the system.  And I
    don't think that he was intending to give _anybody_ credit just by
    trying to specify his system.

I would expect he had no intentions about it one way or the other, and was
simply following the usage he had seen elsewhere.

But intentions aside, it's a fact that calling the whole system Linux
gives the credit for the whole system to someone who came along seven
years after we (the GNU Project) started it.

You pointed out that one sentence in my message was not entirely
clear:

    > And yet here you are asking us to help you out.  Please start
    > treating us right.

In that context, "us" refers to the developers of the GNU system,
which includes the developers of GNU Emacs and those of many other
GNU programs.

Thanks.

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

end of thread, other threads:[~2003-11-07  1:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-04 13:43 emacs -nw hangs on redirect Victor Lesk
2003-11-05  1:06 ` Richard Stallman
     [not found] ` <mailman.3179.1067994861.21628.bug-gnu-emacs@gnu.org>
2003-11-05  1:44   ` David Kastrup
2003-11-07  1:01     ` Richard Stallman
     [not found] <mailman.3114.1067953597.21628.bug-gnu-emacs@gnu.org>
2003-11-04 16:18 ` Barry Margolin

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