From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by sourceware.org (Postfix) with ESMTPS id 0368F3857C53 for ; Mon, 24 Aug 2020 12:36:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0368F3857C53 Received: by mail-ej1-x636.google.com with SMTP id dp2so6387431ejc.4 for ; Mon, 24 Aug 2020 05:36:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=gShg6D+9PdQ/PUfzxPHEfcwlNvdUrHRk5gVSZDowy+4=; b=GbajrXRiTPadI0b4IWeOzmylDhmVSabvkEqW459T5V5vDeDQpWNN0lzlyIZABChsao JdpbJ45jLsTliTMfDOQYIODgRHBBxQJ+Ey7tw7ZspVTUneEfQc+gbhye4U/nefTxCFtr IQjpajnnDEmGVD8y+WeNLAVrFQs9fgRud22+1NtTQjIbNaNDRZxwvKre7WP9BlpX3kyX ymqIliYeFMaBGSiautyPVGZGMmUykfF+fFV2hdx58e3/6rR9L5vVBdP2uGHK9HyrPWl8 hT/rfJqF1Wkaql0rlWrDoPbgSh2RUrWrEx+T5k/Xyd1cpSnYBRv1iKiehnpA2p+b6+7u CbCw== X-Gm-Message-State: AOAM532h7smPTcepRPq8UOaVhxYGzvBdqUS/yDCs3qY3oZiKOtjq2Wzb q30IVMHPBUKLD25W50aaX1gS7nEhm5coGcwrj/8orOFIagI= X-Google-Smtp-Source: ABdhPJwvNiOPaf3AEiBVKENDJA2MSVnVXVERJBOillawv0gQUK/ls1iBa6iVRPFTLKBwek7aVt0YvGofAwYj82A1exQ= X-Received: by 2002:a17:906:8416:: with SMTP id n22mr5521049ejx.128.1598272595877; Mon, 24 Aug 2020 05:36:35 -0700 (PDT) MIME-Version: 1.0 References: <83c5ffc2-02ac-e38e-6e8c-9963ac15b62d@towo.net> In-Reply-To: <83c5ffc2-02ac-e38e-6e8c-9963ac15b62d@towo.net> From: =?UTF-8?Q?Morten_Kj=C3=A6rulff?= Date: Mon, 24 Aug 2020 14:36:25 +0200 Message-ID: Subject: Re: Wrong expansion of ~/ To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Aug 2020 12:36:38 -0000 On Mon, Aug 24, 2020 at 11:52 AM Thomas Wolff wrote: > > Am 24.08.2020 um 10:05 schrieb Morten Kj=C3=A6rulff via Cygwin: > > Hi, > > > > I have a script that starts several tmux panes with my favorite command= s. > > In some (*some* and only *sometimes*) of the panes I see: > > > > -bash: /home/xxxxxP/.git-completion.bash: No such file or directory > > -bash: /home/xxxxxP/.git-prompt.sh: No such file or directory > > > > My .bashrc has: > > > > $ grep git .bashrc > > . ~/.git-completion.bash > > . ~/.git-prompt.sh > > > > My userid is xxxxxf (and not xxxxxP). > > > > Is this known? > What if you trace `echo $HOME; echo ~` after the `.`? I have occasional > cases where $HOME and ~ start to be different in my shell, which is > quite weird and should not happen according to bash documentation. Ok, My userid is xx00mkf. If I add: . ~/.git-completion.bash if [ ! $? =3D 0 ] ; then echo "HOME=3D" $HOME echo "~=3D" ~ fi I see: -bash: /home/xx00m/.git-completion.bash: No such file or directory HOME=3D /home/xx00mkf ~=3D /home/xx00m If I add: . ~/.git-completion.bash if [ ! $? =3D 0 ] ; then echo "HOME=3D" $HOME echo "~=3D" ~ echo "~/.git-completion.bash=3D" ~/.git-completion.bash fi -bash: /home/xx00m/.git-completion.bash: No such file or directory HOME=3D /home/xx00mkf ~=3D /home/xx00mkf ~/.git-completion.bash=3D /home/xx00mkf/.git-completion.bash If I add: . ~/.git-completion.bash if [ ! $? =3D 0 ] ; then echo "HOME=3D" $HOME echo "~=3D" ~ echo "~=3D" ~ echo "~=3D" ~ echo "~=3D" ~ echo "~=3D" ~ echo "~=3D" ~ echo "~=3D" ~ echo "~=3D" ~ fi I cannot reproduce the issue. Weird. /Morten