From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: [PATCH 0/2] Teach org-version to include git version information Date: Wed, 19 Aug 2009 10:17:49 -0400 Message-ID: <871vn7zy42.fsf@gollum.intra.norang.ca> References: <1250616163-11733-1-git-send-email-bernt@norang.ca> <668A7B70-E1E0-485E-9537-64C5A039DEF4@gmail.com> <87bpmdaqff.fsf@gollum.intra.norang.ca> <4D2E35AC-DBAB-499C-946A-2BB86D6C2AA3@gmail.com> <87tz04yrk0.fsf@gollum.intra.norang.ca> <87prasypiv.fsf@gollum.intra.norang.ca> <87iqgkyoic.fsf@gollum.intra.norang.ca> <87eir8ylni.fsf@gollum.intra.norang.ca> <10259.1250690543@gamaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MdlzD-0006fq-U9 for emacs-orgmode@gnu.org; Wed, 19 Aug 2009 10:17:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MdlzA-0006ea-6H for emacs-orgmode@gnu.org; Wed, 19 Aug 2009 10:17:59 -0400 Received: from [199.232.76.173] (port=43358 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mdlz9-0006eR-PC for emacs-orgmode@gnu.org; Wed, 19 Aug 2009 10:17:55 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:50636) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mdlz9-000897-Ay for emacs-orgmode@gnu.org; Wed, 19 Aug 2009 10:17:55 -0400 In-Reply-To: <10259.1250690543@gamaville.dokosmarshall.org> (Nick Dokos's message of "Wed\, 19 Aug 2009 10\:02\:23 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org, Carsten Dominik Nick Dokos writes: > Bernt Hansen wrote: > > ... >> (shell-command (concat "GITDIR=" dir " && git describe --abbrev=4 HEAD")) > ... > > Disclaimer: I touch Windows once a day to check a mail account and > possibly surf the web - other than that, I'm pretty much at sea in it > (and I've never used emacs on Windows, let alone install git on it.) > Please excuse the elementary questions. > > How does shell-command work under Windows? What shell is it using? > Is cygwin a prerequisite for it? Is cygwin a prerequisite for git? > > Thanks, > Nick Nick, You use windows more than me :) I have no idea what shell it uses - but if it's the DOS shell the && above is never going to work. I have GNU Emacs 23.0.91.1 (i386-mingw-nt5.1.2600) of 2009-02-26 on LENNART-69DE564 (patched) here which I can try. I think this version uses the DOS shell and git which is installed on the system isn't available from this shell. Maybe I should just disable the git version for now on ms-dos, windows-nt, and cygwin since I don't know how to make it work reliably on windows. Opinions? -Bernt