Fix #6202
This commit is contained in:
parent
6cc8e67580
commit
93a5107e79
@ -78,6 +78,9 @@ func TestSSHConfigParsing(t *testing.T) {
|
|||||||
rt(`unset ["a"]`)
|
rt(`unset ["a"]`)
|
||||||
conf = "env LOCAL_ENV=_kitty_copy_env_var_"
|
conf = "env LOCAL_ENV=_kitty_copy_env_var_"
|
||||||
rt(`export ["LOCAL_ENV","LOCAL_VAL",false]`)
|
rt(`export ["LOCAL_ENV","LOCAL_VAL",false]`)
|
||||||
|
conf = "env a=b\nhostname 2\ncolor_scheme xyz"
|
||||||
|
hostname = "2"
|
||||||
|
rt()
|
||||||
|
|
||||||
ci, err := ParseCopyInstruction("--exclude moose --dest=target " + cf)
|
ci, err := ParseCopyInstruction("--exclude moose --dest=target " + cf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@ -77,7 +77,11 @@ by spaces. The hostname can include an optional username in the form
|
|||||||
first hostname specification is found. Note that matching of hostname is done
|
first hostname specification is found. Note that matching of hostname is done
|
||||||
against the name you specify on the command line to connect to the remote host.
|
against the name you specify on the command line to connect to the remote host.
|
||||||
If you wish to include the same basic configuration for many different hosts,
|
If you wish to include the same basic configuration for many different hosts,
|
||||||
you can do so with the :ref:`include <include>` directive.
|
you can do so with the :ref:`include <include>` directive. In version 0.28.0
|
||||||
|
the behavior of this option was changed slightly, now, when a hostname is encountered
|
||||||
|
all its config values are set to defaults instead of being inherited from a previous
|
||||||
|
matching hostname block. In particular it means hostnames dont inherit configurations,
|
||||||
|
thereby avoiding hard to understand action-at-a-distance.
|
||||||
''')
|
''')
|
||||||
|
|
||||||
opt('interpreter', 'sh', long_text='''
|
opt('interpreter', 'sh', long_text='''
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user