Kimmo Lehto
Kimmo Lehto
I made a pull request to han repo that provides this. https://github.com/han/stalker/pull/12
The ssh_config does not define a list of "hosts" but a list of host matchers, global options, includes and match blocks. There's no point in getting a "list of hosts"....
> There is definitely a point: if for no other reason, I want tab-completion for my shell command, like what is available for the ssh command. I checked how the...
~~I think I can use GetAllStrict~~ (no, ssh_config.Config does not have GetAllStrict)
Actually, I think what I want to do is overwrite `UserSettings.userConfig` or `UserSettings.configFinder`. The only exposed setting is `IgnoreErrors`. Perhaps something like `NewUserSettings(params)`. *edit a year later:* i have no...
Echo is not an executable, you need something like `cmd /c echo "hello"`.
Hmm, I wonder if exec.LookPath needs the extension on windows, `cmd.exe`.
Filename extension, as the `.exe` in `cmd.exe`. Try with `cmd.exe /c echo "hello"`.
(and to answer my own wondering: exec.LookPath on windows doesn't need the .exe, it handles those on its own)
Still getting the close of a closed channel error quite often.