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:33:04 -0700 Message-ID: <7vod9mi7sf.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:34:05 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 1JYpdA-00009M-Ou for gcvg-git-2@gmane.org; Mon, 10 Mar 2008 22:34:01 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752304AbYCJVdQ (ORCPT ); Mon, 10 Mar 2008 17:33:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752228AbYCJVdQ (ORCPT ); Mon, 10 Mar 2008 17:33:16 -0400 Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:46196 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752206AbYCJVdQ (ORCPT ); Mon, 10 Mar 2008 17:33:16 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id A1FB71965; Mon, 10 Mar 2008 17:33:12 -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 1258E1960; Mon, 10 Mar 2008 17:33:07 -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 > . That's not "for some reason" but "I am asking shell to split", and sh -c '"$@"' ignoreme ... would work better ;-).