Wrong expansion of ~/

Thomas Wolff towo@towo.net
Mon Aug 24 09:50:29 GMT 2020


Am 24.08.2020 um 10:05 schrieb Morten Kjærulff via Cygwin:
> Hi,
>
> I have a script that starts several tmux panes with my favorite commands.
> 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.
Thomas
>
> /Morten
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list