If I have two hosts defined, something like
Host host
blahblah
---
Host otherhost
blahblah
and then call sshmount -w host, then it will bring in arguments from both host blocks.
Adding one more trailing --- to close out "otherhost" now results in no unique match!, which makes a little more sense, but two things then:
- Not having a
--- on the last host should not cause different behavior, I think; and
- those two hosts are different, they should be treated differently
I suspect the issue is in fetchHostAttribute, looking.
If I have two hosts defined, something like
and then call
sshmount -w host, then it will bring in arguments from both host blocks.Adding one more trailing
---to close out "otherhost" now results inno unique match!, which makes a little more sense, but two things then:---on the last host should not cause different behavior, I think; andI suspect the issue is in
fetchHostAttribute, looking.