From: Bob Nelson <bnelson@nelsonbe.com>
To: help-gnu-emacs@gnu.org
Subject: shell, eshell and sql-postgres no prompt [LONG]
Date: Tue, 12 Feb 2008 00:06:46 -0600 [thread overview]
Message-ID: <ford1m$14e$1@renpen.nelsonbe.com> (raw)
Here's the essence of the problem:
Any and ALL processes started in eshell, shell or any of the SQL
interactive modes do NOT show the application's command prompt. The
process works fine otherwise. This is most evident with ``psql'' but
happens with anything that would otherwise have a prompt (such as
``ncftp'').
1). To this point of my investigation, I've tried setting TERM to
``dumb'', ``cygwin'', ``vt100'' and ``linux''.
2). Thus far, I've tried setting the SHELL and shell-file-name to
``bash'', ``ash'', ``CMD.EXE', ``COMMAND.COM'' and ``cmdproxy''.
3). The problem occurs with emacs-22.1 compiled against MSVC and MinGW.
It also happens with the ``fullbin'' package from the GNU FTP site.
4). It happens whether I launch emacs from within Cygwin or from the
native Windows CMD.EXE processor. It happens regardless of whether
``runemacs'' or ``emacs'' is the command used to invoke emacs.
5). It also happens when running under ``rxvt'' as well as the Cygwin
bash shell.
6). Setting CYGWIN=tty also makes no difference.
7). Whether or not ``setup-cygwin.el'' is loaded also makes no
difference.
I primarily work under Solaris and Linux, so this Windows environment
is foreign to me and I've likely botched something. Here's information
about the system.
a). GNU Emacs 22.1.1 (i386-msvc-nt4.0.1381) of 2008-02-09 on DUCKY
b). Windows NT 4 SP 6a
Now, here's a ``shell'' session showing the problem illustrated with
PostgreSQL's monitor. Note that everything works but that there's no
welcome banner nor the expected ``test#'' prompt (as there is in Linux
and Solaris). The only interactive program that I've found that prompts
under either eshell or shell is ``units'' as this trace shows:
============================= [ BEGIN shell ] ==========================
~>date
Mon Feb 11 22:54:32 CST 2008
~>uname -a
CYGWIN_NT-4.0 ducky 1.5.25(0.156/4/2) 2007-12-14 19:21 i686 Cygwin
~>echo $SHELL
d:/usr/local/cygwin32/bin/bash.exe
~>echo $TERM
emacs
~>psql --version
psql (PostgreSQL) 8.2.6
contains support for command-line editing
~>psql -l
List of databases
Name | Owner | Encoding
-----------------+---------------+-----------
bnelson | bnelson | SQL_ASCII
booktown | bnelson | SQL_ASCII
mere_mortals | bnelson | LATIN9
momjian | bnelson | SQL_ASCII
movies | bnelson | LATIN9
nlcc | bnelson | SQL_ASCII
origins_db | bnelson | SQL_ASCII
playpen | bnelson | SQL_ASCII
postgres | postgres | SQL_ASCII
practice | bnelson | SQL_ASCII
reference_files | bnelson | SQL_ASCII
sql_nutshell | bnelson | SQL_ASCII
template0 | postgres | SQL_ASCII
template1 | postgres | SQL_ASCII
test | bnelson | SQL_ASCII
training | bnelson | LATIN9
(16 rows)
~>psql test
select version();
version
------------------------------------------------------------------------------------------------------------------
PostgreSQL 8.2.6 on i686-pc-cygwin, compiled by GCC gcc (GCC) 3.4.4
(cygming special, gdc 0.12, using dmd 0.125)
(1 row)
\q
~>TERM=cygwin
~>psql test
select version();
version
------------------------------------------------------------------------------------------------------------------
PostgreSQL 8.2.6 on i686-pc-cygwin, compiled by GCC gcc (GCC) 3.4.4
(cygming special, gdc 0.12, using dmd 0.125)
(1 row)
\q
~>units
1989 units, 71 prefixes, 32 nonlinear units
You have: 100 yards
You want: feet
* 300
/ 0.0033333333
You have:
~>exit
exit
Process shell finished
============================= [ END shell ] ==========================
reply other threads:[~2008-02-12 6:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='ford1m$14e$1@renpen.nelsonbe.com' \
--to=bnelson@nelsonbe.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).