From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.devel Subject: Re: kill-emacs and returning values Date: Sat, 14 Feb 2009 23:01:07 +0100 Message-ID: <7dbe73ed0902141401h283187ffi9698cf167b613e3b@mail.gmail.com> References: <7dbe73ed0902140551w7a85d043n54e451896d99279e@mail.gmail.com> <1234631845.6514.4.camel@surlej> <7dbe73ed0902141223w1d2e16d6kc8287caa26c40019@mail.gmail.com> <1234648071.6514.43.camel@surlej> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1234648886 19801 80.91.229.12 (14 Feb 2009 22:01:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Feb 2009 22:01:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: mathias@mnet-mail.de Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 14 23:02:41 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LYSau-0008RW-2P for ged-emacs-devel@m.gmane.org; Sat, 14 Feb 2009 23:02:40 +0100 Original-Received: from localhost ([127.0.0.1]:32987 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LYSZa-0002D8-A3 for ged-emacs-devel@m.gmane.org; Sat, 14 Feb 2009 17:01:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LYSZV-0002Cq-3h for emacs-devel@gnu.org; Sat, 14 Feb 2009 17:01:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LYSZT-0002AI-9q for emacs-devel@gnu.org; Sat, 14 Feb 2009 17:01:12 -0500 Original-Received: from [199.232.76.173] (port=37926 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LYSZT-0002AD-7d for emacs-devel@gnu.org; Sat, 14 Feb 2009 17:01:11 -0500 Original-Received: from mail-bw0-f208.google.com ([209.85.218.208]:48702) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LYSZS-0001pW-Ol for emacs-devel@gnu.org; Sat, 14 Feb 2009 17:01:10 -0500 Original-Received: by bwz4 with SMTP id 4so3218142bwz.18 for ; Sat, 14 Feb 2009 14:01:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=9X0DErRQXVKVrDM2Hcv2hJDEtnJx7ZpabKZGDUQjzWE=; b=sXj0GHjOZ4n2xCiKn7/yntLRvnZhb4a06nKuOIyzGW/TTYNumPJIInoUK+ozlxwJuW dk3l65sK4CLUcHVwj5CueE/XR99VTkDCeSwxHr6/2j8BTkBkUzk6HlA3xgoK+AGkkIRg jogEcc8ef3wWMF16gxyFPoeMXuEzrUzA2Ucz8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=XJ0VO2Kb+gFa4LC/VVziTTZF53wwrMaEWWxLnNAqPrZJt5CpwbazMtbUmETZtRrK63 gHhEgR8OjZiFQE0zhHUFPwgPA5fvz7EEi013xoNmWPTa5hGqR6DeyiEPLC1nEBFC/tmr WLQ78cam/iFequr6oHUv2fmzGUJPWcIJz53h4= Original-Received: by 10.103.92.8 with SMTP id u8mr2098648mul.34.1234648867808; Sat, 14 Feb 2009 14:01:07 -0800 (PST) In-Reply-To: <1234648071.6514.43.camel@surlej> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109079 Archived-At: > #!/bin/bash > > /opt/emacs/23.0.60/bin/emacs -Q -nw -l ke.el > read myval > echo "myval is set to: '$myval'" It does not work for me, read sits there, waiting for input and I have to feed it something to get the prompt back, and it is what I enter that is echoed back. The value emacs "types" is just seen printed on the terminal. I should probably forget about this and use write-region to write the value to a file instead, something is clearly not 100 percent okay in my setup. I am using a pretest emacs from some week ago, btw. /Mathias