From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: shell-command-to-string results in error Date: Sun, 28 Oct 2012 15:46:29 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1351435598 23713 80.91.229.3 (28 Oct 2012 14:46:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Oct 2012 14:46:38 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Rainer Stengele Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 28 15:46:46 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TSU8U-0004wq-1w for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Oct 2012 15:46:46 +0100 Original-Received: from localhost ([::1]:35980 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSU8L-0006OE-SD for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Oct 2012 10:46:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSU8G-0006O0-Q7 for help-gnu-emacs@gnu.org; Sun, 28 Oct 2012 10:46:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSU8F-0000XH-Se for help-gnu-emacs@gnu.org; Sun, 28 Oct 2012 10:46:32 -0400 Original-Received: from mout.web.de ([212.227.17.11]:52972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSU8F-0000Wy-JE for help-gnu-emacs@gnu.org; Sun, 28 Oct 2012 10:46:31 -0400 Original-Received: from [192.168.178.8] ([95.222.201.211]) by smtp.web.de (mrweb103) with ESMTPA (Nemesis) id 0M89uv-1TF61627yz-00wA2t; Sun, 28 Oct 2012 15:46:29 +0100 In-Reply-To: X-Mailer: Apple Mail (2.1085) X-Provags-ID: V02:K0:/uXsclKK1JxJMiL6WqwotrDpHaNF4GeNqcTlnA7rkGB l9RtI3xBhaGpn5QoIH4iJZh3Asz4tOg96/U5IBusGrb6At2epe QRBzL+/GJgQn/L3PnvSyIzyG24b4CAWFXP5PWDjdtxYpn+Y1nn XICGKdFC1fBbxd9/FsOdjWsJWfMjKLzqesOaZZ2nSYd+y2VTq4 vHl2p2N23vR6jOzByI90w== X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.17.11 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87460 Archived-At: Am 28.10.2012 um 12:20 schrieb Rainer Stengele: > Doing the same as root I get a correct result without error. Can you launch GNU Emacs from your home directory or /tmp with the -Q = option and try in *scratch* buffer (getenv "SHELL") and also (shell-command-to-string "env | grep SHELL") The first command will show you which value is set in the environment in = which you GNU Emacs instance is running. The second command will be = executed in a sub-shell =96 and return the same value plus any other = disturbances your shell is producing at start-up. The draw your = conclusions! If the second command fails the same way as in your post, then it's = possible that GNU Emacs has loaded inappropriate ELisp files=85 -- Mit friedvollen Gr=FC=DFen Pete Clovis' Consideration of an Atmospheric Anomaly: The perversity of nature is nowhere better demonstrated than by = the fact that, when exposed to the same atmosphere, bread becomes hard = while crackers become soft