unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* offical Emacs 22.1: `term' problem on MS Windows
@ 2008-03-17 17:49 Peter Tury
  2008-03-17 23:25 ` Jason Rumney
       [not found] ` <mailman.9055.1205796345.18990.bug-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Peter Tury @ 2008-03-17 17:49 UTC (permalink / raw)
  To: bug-gnu-emacs

Hi,

I've just installed official v22.1 from gnu ftp server onto MS Windows
XP. I haven't customized it yet. I tried M-x term and got error:

"Spawning child process: invalid argument"

Then I digged into the code and saw that  term-exec-1 from term.el
uses "/bin/sh" unconditionally. I tried to comment it out, so I got:

"
    (apply 'start-process name buffer
;;	   "/bin/sh" "-c"
;;	   (format "stty -nl echo rows %d columns %d sane 2>/dev/null;\
;;if [ $1 = .. ]; then shift; fi; exec \"$@\""
;;		   term-height term-width)
;;	   ".."
	   command switches)))
"
and, for first sight it seems to work (since `command' has write
value: "C:/Program Files/emacs-22.1/bin/cmdproxy.exe").

Is this a known bug? Or I misused somethnig?

Thanks in advance,
P


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

* Re: offical Emacs 22.1: `term' problem on MS Windows
  2008-03-17 17:49 offical Emacs 22.1: `term' problem on MS Windows Peter Tury
@ 2008-03-17 23:25 ` Jason Rumney
       [not found] ` <mailman.9055.1205796345.18990.bug-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Jason Rumney @ 2008-03-17 23:25 UTC (permalink / raw)
  To: Peter Tury; +Cc: bug-gnu-emacs

Peter Tury wrote:
> Then I digged into the code and saw that  term-exec-1 from term.el
> uses "/bin/sh" unconditionally. I tried to comment it out, so I got:
>
> "
>     (apply 'start-process name buffer
> ;;	   "/bin/sh" "-c"
> ;;	   (format "stty -nl echo rows %d columns %d sane 2>/dev/null;\
> ;;if [ $1 = .. ]; then shift; fi; exec \"$@\""
> ;;		   term-height term-width)
> ;;	   ".."
> 	   command switches)))
> "
> and, for first sight it seems to work (since `command' has write
> value: "C:/Program Files/emacs-22.1/bin/cmdproxy.exe").
>   

It might seem to work for some definition of "work", but it is no longer 
a terminal emulator if you remove those lines, and you might as well 
just use M-x shell.

AFAIK there is no way to get M-x term working on Windows, as its 
implementation of terminals is completely different and undocumented.




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

* Re: offical Emacs 22.1: `term' problem on MS Windows
       [not found] ` <mailman.9055.1205796345.18990.bug-gnu-emacs@gnu.org>
@ 2008-03-18  8:08   ` Peter Tury
  2008-03-18 11:39     ` Jason Rumney
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Tury @ 2008-03-18  8:08 UTC (permalink / raw)
  To: bug-gnu-emacs

On Mar 18, 12:25 am, Jason Rumney <jas...@gnu.org> wrote:
> Peter Tury wrote:
> > Then I digged into the code and saw that  term-exec-1 from term.el
> > uses "/bin/sh" unconditionally. I tried to comment it out, so I got:
>
> > "
> >     (apply 'start-process name buffer
> > ;;    "/bin/sh" "-c"
> > ;;    (format "stty -nl echo rows %d columns %d sane 2>/dev/null;\
> > ;;if [ $1 = .. ]; then shift; fi; exec \"$@\""
> > ;;            term-height term-width)
> > ;;    ".."
> >       command switches)))
> > "
> > and, for first sight it seems to work (since `command' has write
> > value: "C:/Program Files/emacs-22.1/bin/cmdproxy.exe").
>
> It might seem to work for some definition of "work", but it is no longer
> a terminal emulator if you remove those lines, and you might as well
> just use M-x shell.
>
> AFAIK there is no way to get M-x term working on Windows, as its
> implementation of terminals is completely different and undocumented.

Then, I think, it should be removed from Windows binaries. Or be
documented as not working there. In its current form it simply gives
an error message showing some buggy behaviour. At least it should show
up an error message saying "this is not implemented in this OS". What
do you think?

Thanks,
P


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

* Re: offical Emacs 22.1: `term' problem on MS Windows
  2008-03-18  8:08   ` Peter Tury
@ 2008-03-18 11:39     ` Jason Rumney
  0 siblings, 0 replies; 4+ messages in thread
From: Jason Rumney @ 2008-03-18 11:39 UTC (permalink / raw)
  To: Peter Tury; +Cc: bug-gnu-emacs

Peter Tury wrote:
> Then, I think, it should be removed from Windows binaries. Or be
> documented as not working there.
>   

I added an entry in etc/PROBLEMS about this. We don't remove things just 
because they do not work on Windows. Someone may find a way to make it 
work with Cygwin in future, for example.






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

end of thread, other threads:[~2008-03-18 11:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-17 17:49 offical Emacs 22.1: `term' problem on MS Windows Peter Tury
2008-03-17 23:25 ` Jason Rumney
     [not found] ` <mailman.9055.1205796345.18990.bug-gnu-emacs@gnu.org>
2008-03-18  8:08   ` Peter Tury
2008-03-18 11:39     ` Jason Rumney

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