diff options
author | Boris Aranovich <nomaed@users.noreply.github.com> | 2016-06-15 18:54:40 +0300 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2016-06-15 17:54:40 +0200 |
commit | cbe97ac1a16930d561ff3899433ce07a7a5f261a (patch) | |
tree | e4f1d35dffe09b0dd53b0bd4a2f0aa91b402d3af /fish.spec.in | |
parent | 3cecc1f475d8f2d34f6e2519a8f7f9168296a494 (diff) |
Refine reading ssh_config (#3146)
https://www.freebsd.org/cgi/man.cgi?query=ssh_config&sektion=5
1. It is possible to add multiple whitespace characters between the keyword (i.e. Host) and the argument(s).
2. It is allowed to have a single = and whitespace between the keyword and the argument(s).
3. It is possible to add multiple host names under a single Host directive by spacing the names apart.
1. and 3. are actual conventions that we use in our team, and I couldn't get auto-complete working for fish without this modification.
Modification explained:
a. The space between Host(?:name)? and the \w.* was replaced by (?:\s+|\s*=\s*) to match any sequence of whitespace characters, or optional whitespaces with a single =, per spec.
b. Result of first replacement is piped through another string replace to switch duplicate whitespace characters to a single space, and then piped to be split by that space. This allows specifying several aliases or host names in a single Host/Hostname definition, also per spec.
Diffstat (limited to 'fish.spec.in')
0 files changed, 0 insertions, 0 deletions