From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH] launch_editor(): allow spaces in the filename Date: Mon, 10 Mar 2008 14:42:50 -0700 Message-ID: <7vejaii7c5.fsf@gitster.siamese.dyndns.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Zeng.Shixin@gmail.com, theevancarroll@gmail.com, git@vger.kernel.org To: Johannes Schindelin X-From: git-owner@vger.kernel.org Mon Mar 10 22:43:49 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1JYpmb-00042q-Eb for gcvg-git-2@gmane.org; Mon, 10 Mar 2008 22:43:45 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752331AbYCJVnG (ORCPT ); Mon, 10 Mar 2008 17:43:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752135AbYCJVnF (ORCPT ); Mon, 10 Mar 2008 17:43:05 -0400 Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:49090 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752072AbYCJVnE (ORCPT ); Mon, 10 Mar 2008 17:43:04 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id B1EC022E6; Mon, 10 Mar 2008 17:43:02 -0400 (EDT) Received: from pobox.com (ip68-225-240-77.oc.oc.cox.net [68.225.240.77]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id 1D16222E5; Mon, 10 Mar 2008 17:42:57 -0400 (EDT) In-Reply-To: (Johannes Schindelin's message of "Mon, 10 Mar 2008 21:42:47 +0100 (CET)") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Johannes Schindelin writes: > For some reason, the construct > > sh -c "$0 \"$@\"" > > does not pick up quotes in as expected. So replace $0 with > . > > This fixes > > git config core.editor "c:/Program Files/What/Ever.exe" > Having sent a few messages about shell quoting, it makes me wonder if this was done very deliberately in the first place, so that you can do things like: git config core.editor "emacs -nw" Blame followed by list archive hunting around that timeperiod would tell.