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.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, 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 411151F5AE for ; Wed, 5 May 2021 18:35:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234364AbhEESgX (ORCPT ); Wed, 5 May 2021 14:36:23 -0400 Received: from cloud.peff.net ([104.130.231.41]:45706 "EHLO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230247AbhEESgW (ORCPT ); Wed, 5 May 2021 14:36:22 -0400 Received: (qmail 19624 invoked by uid 109); 5 May 2021 18:35:25 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with ESMTP; Wed, 05 May 2021 18:35:25 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 12578 invoked by uid 111); 5 May 2021 18:35:25 -0000 Received: from coredump.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.2) by peff.net (qpsmtpd/0.94) with (TLS_AES_256_GCM_SHA384 encrypted) ESMTPS; Wed, 05 May 2021 14:35:25 -0400 Authentication-Results: peff.net; auth=none Date: Wed, 5 May 2021 14:35:23 -0400 From: Jeff King To: Theodor Negrescu Cc: Eric Sunshine , Git List Subject: Re: BUG: Git path --config doesn't work with ~ symbol Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Wed, May 05, 2021 at 09:30:21PM +0300, Theodor Negrescu wrote: > I'm using powershell, but usually ~ works there. Typing "cd ~" would > work for example. > Also I tried using the command as an alias and it still didn't work. I don't know anything about powershell, but generally "cd" is a builtin to the shell (because it is impacting the shell's environment). So it may be that powershell "cd" expands "~" itself, but that the shell doesn't expand it for executed commands. There are some Windows folks who hang out on this list, so you may get a better response. But you might also ask in the Git for Windows mailing list: https://groups.google.com/g/git-for-windows -Peff