by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 00:48
    Kwizatz synchronize #6792
  • 00:21
    Kwizatz commented #6792
  • 00:21
    Kwizatz commented #2099
  • Aug 14 23:09
    106062316 opened #6797
  • Aug 14 23:06
  • Aug 14 22:42
    jeroen synchronize #6774
  • Aug 14 22:10
    jeroen synchronize #6774
  • Aug 14 22:02
    jeroen synchronize #6774
  • Aug 14 21:56
    jeroen synchronize #6774
  • Aug 14 21:48
    jeroen commented #6774
  • Aug 14 21:44
    jeroen commented #6774
  • Aug 14 21:40
    jeroen synchronize #6774
  • Aug 14 21:30
    jeroen synchronize #6774
  • Aug 14 20:55
    jeroen synchronize #6774
  • Aug 14 20:43
    ZachBacon commented #6796
  • Aug 14 20:38
    jeroen synchronize #6774
  • Aug 14 20:11

    lazka on master

    Add extra output groups for the… (compare)

  • Aug 14 20:05

    lazka on master

    Let git clean fail It exists w… (compare)

  • Aug 14 19:41
    Biswa96 commented #6796
  • Aug 14 19:41
    Biswa96 commented #6796
Christoph Reiter
@lazka
@jeroen same PR sounds good
@1480c1 ha, right :P
Jeroen Ooms
@jeroen
Hmm well I may as wel wait for the next upstream release of the other pkg, since they already merged my patches. That way I can add it to msys2 without any patches at the end of the month.
Anything else I need to do to merge msys2/MINGW-packages#6774 ? Should I squash the commits, or can you do a squash-merge?
Nikos Chantziaras
@realnc
hello.
Christopher Degawa
@1480c1
Hello
Nikos Chantziaras
@realnc
i installed OpenSSH in Windows 10. any way to get an msys2 login rather than cmd.exe?
You can use the first step and point to bash
Nikos Chantziaras
@realnc
yeah, that's what i tried at first.
but i get a raw bash shell only.
home dir is wrong, my .bash* and .profile are not read.
jeremyd2019
@jeremyd2019
sounds like you need bash -l for a login shell
Nikos Chantziaras
@realnc
if i do that then i get "permission denied" when i try to ssh into it
looks like windows tried to find an executable named "bash.exe -l" :P
i don't see a way to pass parameters
jeremyd2019
@jeremyd2019
ooh, somebody said you could put a .bat file in there... make a bat file that calls bash -l (or msys2_shell.cmd -defterm -no-start -msys2 (or mingw{32,64}))
Nikos Chantziaras
@realnc
ah. let me try that one...
jeremyd2019
@jeremyd2019
msys2_shell sets more env vars that might be needed too
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\OpenSSH\DefaultShellCommandOption might be interesting to look at
jeremyd2019
@jeremyd2019
that seems to be the switch to make it run a command and exit (-c by default)
but I saw that too and was hopeful :-)
Nikos Chantziaras
@realnc
right
well, same issue with a login.bat that either calls bash.exe -l or msys2_shell.cmd -defterm -no-start -msys2
environment is still wrong :-/
jeremyd2019
@jeremyd2019
what happens if you run one of those (probably msys2_shell.cmd) from the cmd?
Nikos Chantziaras
@realnc
from within a windows cmd.exe command prompt, it does the right thing.
from within an ssh cmd.exe login, it does nothing. well, it launches bash.exe as a background process :P
jeremyd2019
@jeremyd2019
huh, that's what -no-start is supposed to avoid
and -defterm so it doesn't start mintty
Nikos Chantziaras
@realnc
ah, sorry, forgot -no-start
yeah, with that i get a login but again HOME is wrong.
maybe it's an issue with the SSH client?
using a bog-standard openssh client on linux though.
jeremyd2019
@jeremyd2019
no
I just tried it, and I got HOME pointing to my Windows profile, not /home/username
hah
Nikos Chantziaras
@realnc
exactly
jeremyd2019
@jeremyd2019
SET HOME=
CALL %~dp0\msys2_shell.cmd -defterm -no-start -msys2
in a bat file in msys root
may want @echo off at the beginning if you don't want the extra output
Nikos Chantziaras
@realnc
aha! that works.
jeremyd2019
@jeremyd2019
go figure. I guess OpenSSHd sets HOME
and msys doesn't override it if it's set
Nikos Chantziaras
@realnc
thank you!
i wonder what else it sets that might interfere
will need to take a look at env output between the two logins
yeah, there's some differences
Nikos Chantziaras
@realnc
minimal diff between native and ssh login:
# diff -u native.txt ssh.txt
-!::=::\                                                                                                          
-!C:=C:\msys64                                                                                                    
+!C:=C:\Users\Nikos                                                                                               
-FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer                                                                 
-FPS_BROWSER_USER_PROFILE_STRING=Default                                                                          
-LOGONSERVER=\\DESKTOP-D006D2I                                                                                    
+LOGNAME=nikos
-MSYSCON=mintty.exe
+MSYS2_NOSTART=yes
-PROMPT=$P$G
-PS1=\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[35m\]$MSYSTEM\[\e[0m\] \[\e[33m\]\w\[\e[0m\]\n\$
+PROMPT=nikos@DESKTOP-D006D2I $P$G
+PS1=\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[35m\]$MSYSTEM\[\e[0m\] \[\e[33m\]\w\[\e[0m\]\n\[\e[1m\]#\[\e[0m\]
-SESSIONNAME=Console
+SSH_CLIENT=172.16.179.1 40296 22
+SSH_CONNECTION=172.16.179.1 40296 172.16.179.128 22
+SSH_TTY=windows-pty
-TERM_PROGRAM_VERSION=3.3.0
-TERM_PROGRAM=mintty
-TERM=xterm-vt220
+TERM=xterm-256color
-USERDOMAIN_ROAMINGPROFILE=DESKTOP-D006D2I
-USERDOMAIN=DESKTOP-D006D2I
-USERNAME=Nikos
+USERDOMAIN=WORKGROUP
+USERNAME=nikos
-WD=C:\msys64\usr\bin\
+WD=c:\msys64\usr\bin\