unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Sunil Yeddu <ysunilraja@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: M-x shell not working
Date: Wed, 19 Oct 2005 03:43:20 -0700	[thread overview]
Message-ID: <13ecef2d0510190343m1dc265f9q45e4b118e22f5997@mail.gmail.com> (raw)
In-Reply-To: <75f08c867c1336e7bf540f392c99da04@Web.DE>


[-- Attachment #1.1: Type: text/plain, Size: 2197 bytes --]

> Why do you want to set TERM in Emacs' shell? GNU Emacs is clever enough
> to set it itself (to dumb). My previous hint with checking whether TERM
> exists is valuable: only if not set source that group-wide .cshrc file!
> The missing pieces from this file can be put into .emacs_csh to
> initialise Emacs *shell* buffer.

.cshrc will be executed before .emacs_csh. Where should I put the line 'if
term is not set source the group-wide cshrc' ? TERM is also being set in
that common cshrc file. The goal is: it should not be set only for emacs
shell.
I found that emacs shell sets an environment variable EMACS to 't'. So only
if that is set, I can set TERM env in common cshrc file. So this is working
now. But this warning message is still there.

Warning: no access to tty (Bad file descriptor).
Thus no job control in this shell.
Although almost everything is fine, there are some problems because it
does'nt have a tty. For example, ftp is not working. I can't see anything on
the screen although ftp commands are working, because there is no tty.

You should be a bit more specific in which OS this happens. And check
> GNU Emacs' eshell too! This one is more kind of a terminal emulation.
> *shell* is just a buffer in which a UNIX shell interpreter runs which
> does not need much code from a shell rc file.


This is happening only in linux OS as I mentioned in my first mail. On
Solaris it is ok.

Our scenario is like this. We have common cshrc and aliasrc files which are
source controlled. These files, which set up our environment, must be
sourced by every member in a large team. Recently we upgraded emacs and
since then we are having this problem. I tried eshell too. But eshell
does'nt take .cshrc. Sourcing the file explicitly if causing some errors as
eshell is unable to understand some shell programming constructs like
'foreach'. As cshrc is failing to load completely, our environment is not
being set in eshell.
Trying to get emacs working and allocate appropriate tty seems to be the
best way for me. As I said, emacs-21.4 is able to allocate it sometimes. May
be the code which does tty allocation needs a fix.

Thanks,
Sunil

[-- Attachment #1.2: Type: text/html, Size: 3141 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

  reply	other threads:[~2005-10-19 10:43 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-18  6:34 M-x shell not working Sunil Yeddu
2005-10-18  9:27 ` Peter Dyballa
2005-10-18 11:56   ` Sunil Yeddu
2005-10-18 18:28     ` Kevin Rodgers
2005-10-19  6:36       ` Sunil Yeddu
2005-10-19  9:00         ` Peter Dyballa
2005-10-19 10:43           ` Sunil Yeddu [this message]
2005-10-20  9:02           ` Peter Dyballa
     [not found]             ` <13ecef2d0510200309v19be5860g8d85c8ebcfd70585@mail.gmail.com>
2005-10-20 12:02               ` Fwd: " Sunil Yeddu
     [not found]               ` <6172b6c2efe01b4025c9d58fe9624236@Web.DE>
2005-10-20 12:03                 ` Sunil Yeddu
2005-10-20 13:45                   ` Eli Zaretskii
2005-10-21 12:52                     ` Sunil Yeddu
2005-10-25  6:19                       ` Sunil Yeddu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=13ecef2d0510190343m1dc265f9q45e4b118e22f5997@mail.gmail.com \
    --to=ysunilraja@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).