From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id DB9361F5AE for ; Thu, 13 May 2021 13:02:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233537AbhEMNDr (ORCPT ); Thu, 13 May 2021 09:03:47 -0400 Received: from bsmtp1.bon.at ([213.33.87.15]:39091 "EHLO bsmtp1.bon.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232807AbhEMNDq (ORCPT ); Thu, 13 May 2021 09:03:46 -0400 Received: from [192.168.0.98] (unknown [93.83.142.38]) by bsmtp1.bon.at (Postfix) with ESMTPSA id 4FgsJS6L60z5tl9; Thu, 13 May 2021 15:02:32 +0200 (CEST) Subject: Re: Git pathspecs difference in behavior between linux (wsl) and windows To: Alexandre Remy Cc: git@vger.kernel.org References: <81d06db6-fd91-7ec5-6aa5-84f69a227204@kdbg.org> From: Johannes Sixt Message-ID: <68a4ebd3-3c80-8983-9a26-f205debc4b5b@kdbg.org> Date: Thu, 13 May 2021 15:02:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Am 13.05.21 um 11:31 schrieb Alexandre Remy: > I have an additional question, does double-quotes be safely used in > both windows (that's ok) and linux shell for pathspecs (git status -- > "src/test.js") in case of spaces in the path? They can be used in both POSIX shell and Windows CMD and, I would assume, also in the PowerShell. Note though, that there are subtle differences when other special characters occur between double-quotes, notably the backslash. Please use your favorite search engine to learn more. -- Hannes