all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: Rainer Stengele <rainer.stengele@online.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: shell-command-to-string results in error
Date: Sun, 28 Oct 2012 15:46:29 +0100	[thread overview]
Message-ID: <E078EB36-6D2D-4464-B481-0F810D0C846C@Web.DE> (raw)
In-Reply-To: <k6j4d3$s3a$1@ger.gmane.org>


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 – 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…

--
Mit friedvollen Grüßen

  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




  reply	other threads:[~2012-10-28 14:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-28 11:20 shell-command-to-string results in error Rainer Stengele
2012-10-28 14:46 ` Peter Dyballa [this message]
2012-10-28 15:31   ` Rainer Stengele
2012-10-28 16:24     ` Peter Dyballa
2012-10-28 18:17       ` Rainer Stengele
2012-10-28 18:47         ` Peter Dyballa

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

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

  git send-email \
    --in-reply-to=E078EB36-6D2D-4464-B481-0F810D0C846C@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=rainer.stengele@online.de \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.