From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Nelson Newsgroups: gmane.emacs.help Subject: shell, eshell and sql-postgres no prompt [LONG] Date: Tue, 12 Feb 2008 00:06:46 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: ger.gmane.org 1202798458 15926 80.91.229.12 (12 Feb 2008 06:40:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Feb 2008 06:40:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 12 07:41:21 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JOopU-0005B3-9a for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Feb 2008 07:41:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOop0-00055T-Ll for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Feb 2008 01:40:50 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!sn-xt-sjc-03!sn-xt-sjc-01!sn-post-sjc-01!supernews.com!corp.supernews.com!renpen.nelsonbe.com!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Followup-To: comp.emacs User-Agent: KNode/0.10.4 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 119 Original-Xref: shelby.stanford.edu comp.emacs:96346 gnu.emacs.help:156068 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51447 Archived-At: 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 ] ==========================