From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emilio Lopes Newsgroups: gmane.emacs.help Subject: Re: SU commands from Emacs Date: Sat, 18 Aug 2007 11:55:11 +0200 Organization: The Church of Emacs Message-ID: <3e4pix181s.fsf@freenet.de> References: <878x8ahxho.fsf@W0053328.mgh.harvard.edu> <9cps1m10mm.fsf@freenet.de> <87r6m2gddj.fsf@W0053328.mgh.harvard.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1187433651 23679 80.91.229.12 (18 Aug 2007 10:40:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 18 Aug 2007 10:40:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 18 12:40:50 2007 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 1IMLjc-0002mg-PZ for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Aug 2007 12:40:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IMLjc-00025C-A0 for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Aug 2007 06:40:48 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!news.freenet.de!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Emacs Gnus Cancel-Lock: sha1:b0KV5XXJSSpUeePjRl26+4ziIjc= Original-Lines: 26 Original-NNTP-Posting-Host: 992151b1.news.freenet.de Original-X-Trace: DXC=lc\H1UAAnc76^_E5edP4AA8D3@ZF[@@6SUjeD Original-X-Complaints-To: abuse@freenet.de Original-Xref: shelby.stanford.edu gnu.emacs.help:151104 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:46677 Archived-At: Joel J Adamson writes: > Emilio Lopes writes: >> Joel J Adamson writes: >> >>> [...] I have sudo installed on Slackware Linux 12.0, but the password >>> prompt does not come up properly. >> >> I guess the problem is that one of your shell init files probably >> (executes a command which) writes to STDOUT. > Where should I have it send the output? How do I get it to the > minibuffer so I can interact with it? Reading the other follow-ups I'm not sure this is really the problem in this specific case. This is mostly a problem for ssh and also for sudo IIRC. Your shell init files should not produce any output ("good morning" greeting, email headers, fortunes, ...) unless the shell is interactive and it's connected to a terminal. Bash sets the variable PS1 iff the shell is interactive. You can check if the shell is connected to a terminal using e.g. "test -t 1". -- Emílio C. Lopes Munich, Germany