From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chad Brown Newsgroups: gmane.emacs.devel Subject: Re: simple useful functions Date: Fri, 29 Oct 2010 13:56:00 -0700 Message-ID: <8BD762AA-A497-4D61-9A1B-7F75BC221541@mit.edu> References: <20101028.115615.04128253.Takaaki.Ota@am.sony.com> <87k4l1r7k5.fsf@uwakimon.sk.tsukuba.ac.jp> <20101029.111346.113803171.Takaaki.Ota@am.sony.com> <0A81F397D65C44D0804AF87B424D207C@us.oracle.com> <662F7C43C13D40309F9D72E311E77293@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1288385812 1544 80.91.229.12 (29 Oct 2010 20:56:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 29 Oct 2010 20:56:52 +0000 (UTC) Cc: Tak Ota To: Emacs Developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 29 22:56:51 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 1PBw0I-0000Hx-K0 for ged-emacs-devel@m.gmane.org; Fri, 29 Oct 2010 22:56:50 +0200 Original-Received: from localhost ([127.0.0.1]:58795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBw0I-0006G4-2L for ged-emacs-devel@m.gmane.org; Fri, 29 Oct 2010 16:56:50 -0400 Original-Received: from [140.186.70.92] (port=41920 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBvzb-00061r-0C for emacs-devel@gnu.org; Fri, 29 Oct 2010 16:56:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBvzZ-00041i-L3 for emacs-devel@gnu.org; Fri, 29 Oct 2010 16:56:06 -0400 Original-Received: from dmz-mailsec-scanner-6.mit.edu ([18.7.68.35]:48380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PBvzZ-00041e-Fb for emacs-devel@gnu.org; Fri, 29 Oct 2010 16:56:05 -0400 X-AuditID: 12074423-b7bd0ae000000a00-c3-4ccb34e4922c Original-Received: from mailhub-auth-3.mit.edu ( [18.9.21.43]) by dmz-mailsec-scanner-6.mit.edu (Symantec Brightmail Gateway) with SMTP id 7C.00.02560.4E43BCC4; Fri, 29 Oct 2010 16:56:04 -0400 (EDT) Original-Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id o9TKu4XQ000886; Fri, 29 Oct 2010 16:56:04 -0400 Original-Received: from [10.0.1.2] (c-71-231-113-235.hsd1.wa.comcast.net [71.231.113.235]) (authenticated bits=0) (User authenticated as yandros@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id o9TKu1hm000322 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Fri, 29 Oct 2010 16:56:03 -0400 (EDT) In-Reply-To: X-Mailer: Apple Mail (2.1081) X-Brightmail-Tracker: AAAAARZ9Dm8= X-detected-operating-system: by eggs.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:132180 Archived-At: On Oct 29, 2010, at 1:47 PM, Andreas Schwab wrote: > "Drew Adams" writes: > >> `.' works in the Bourne-shell family. >> `source' works in the C-shell family. >> `bash' and `zsh' support both. > > Which makes "." more portable. Which seems to be largely pointless, since the goal of the function is to interact with a specific script. If the function doesn't want to detect the shell (ideally, parsing the interpreter from the shebang line, perhaps it'd be better just to name the function(s) something like `source-sh-script' or `source-csh-script'. *Chad ..who has used login shells that didn't support `printenv', and once even used emacs as his login shell to see if it would work.