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=-3.2 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS,URIBL_SBL,URIBL_SBL_A 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 9CD0F1F5AE for ; Thu, 13 May 2021 21:04:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233268AbhEMVFI (ORCPT ); Thu, 13 May 2021 17:05:08 -0400 Received: from bsmtp.bon.at ([213.33.87.14]:46658 "EHLO bsmtp.bon.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233247AbhEMVFH (ORCPT ); Thu, 13 May 2021 17:05:07 -0400 Received: from [192.168.0.98] (unknown [93.83.142.38]) by bsmtp.bon.at (Postfix) with ESMTPSA id 4Fh3zv2ptPz5tlD; Thu, 13 May 2021 23:03:55 +0200 (CEST) Subject: Re: Git pathspecs difference in behavior between linux (wsl) and windows To: Junio C Hamano Cc: Alexandre Remy , git@vger.kernel.org References: <81d06db6-fd91-7ec5-6aa5-84f69a227204@kdbg.org> <68a4ebd3-3c80-8983-9a26-f205debc4b5b@kdbg.org> From: Johannes Sixt Message-ID: Date: Thu, 13 May 2021 23:03:55 +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 22:08 schrieb Junio C Hamano: > Johannes Sixt writes: > >> 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. > > And a dollar sign, in addition to the backslash? Granted, there's not a subtle, but a big difference how the dollar sign is treated ;) but I don't want to write a tutorial here. Hence, my hint towards a search engine. -- Hannes