From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: simple useful functions Date: Fri, 29 Oct 2010 12:02:36 -0700 Message-ID: <0A81F397D65C44D0804AF87B424D207C@us.oracle.com> References: <20101028.115615.04128253.Takaaki.Ota@am.sony.com><87k4l1r7k5.fsf@uwakimon.sk.tsukuba.ac.jp> <20101029.111346.113803171.Takaaki.Ota@am.sony.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1288379496 5943 80.91.229.12 (29 Oct 2010 19:11:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 29 Oct 2010 19:11:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Tak Ota'" , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 29 21:11:35 2010 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.69) (envelope-from ) id 1PBuMR-0002ay-03 for ged-emacs-devel@m.gmane.org; Fri, 29 Oct 2010 21:11:35 +0200 Original-Received: from localhost ([127.0.0.1]:39000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBuMQ-0002du-2O for ged-emacs-devel@m.gmane.org; Fri, 29 Oct 2010 15:11:34 -0400 Original-Received: from [140.186.70.92] (port=33899 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBuEE-00014T-Le for emacs-devel@gnu.org; Fri, 29 Oct 2010 15:03:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBuEB-0004gA-Dj for emacs-devel@gnu.org; Fri, 29 Oct 2010 15:03:06 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:34432) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PBuEA-0004eL-Ug for emacs-devel@gnu.org; Fri, 29 Oct 2010 15:03:03 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o9TJ2tdA031406 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 29 Oct 2010 19:02:56 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o9THAWrf003860; Fri, 29 Oct 2010 19:02:51 GMT Original-Received: from abhmt009.oracle.com by acsmt354.oracle.com with ESMTP id 731596921288378957; Fri, 29 Oct 2010 12:02:37 -0700 Original-Received: from dradamslap1 (/10.159.237.112) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 29 Oct 2010 12:02:36 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20101029.111346.113803171.Takaaki.Ota@am.sony.com> Thread-Index: Act3lUKEvdEB59qFTVK9MIsP7Min3wAAYznw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:132176 Archived-At: > > > (call-process shell nil t nil "-c" > > > (concat "source " script "; printenv")) > > > > Isn't "." rather than "source" the portable idiom here? > > You are correct. "." is better. `.' doesn't work for csh, does it? Isn't `source' appropriate for csh? And `man bash' shows that `source' is supported as well as `.', at least for that flavor of `sh' (not for original `sh'). In multiple places the `bash' man page refers to "the . or source builtins" or "the . (source) command". And `.' and `source' are listed together, with the same description, under `Shell Builtin Commands'. So what makes `.' more portable than `source'? (But I'm no expert on this.)