@@ -435,7 +435,7 @@ func TestConfigSSH_FileWriteAndOptionsFlow(t *testing.T) {
435435"# :hostname-suffix=coder-suffix" ,
436436"# :header=X-Test-Header=foo" ,
437437"# :header=X-Test-Header2=bar" ,
438- "# :header-command=printf h1=v1 h2=\" v2\" h3='v3'" ,
438+ "# :header-command=echo h1=v1 h2=\" v2\" h3='v3'" ,
439439"#" ,
440440},"\n " ),
441441strings .Join ([]string {
@@ -451,7 +451,7 @@ func TestConfigSSH_FileWriteAndOptionsFlow(t *testing.T) {
451451"--hostname-suffix" ,"coder-suffix" ,
452452"--header" ,"X-Test-Header=foo" ,
453453"--header" ,"X-Test-Header2=bar" ,
454- "--header-command" ,"printf h1=v1 h2=\" v2\" h3='v3'" ,
454+ "--header-command" ,"echo h1=v1 h2=\" v2\" h3='v3'" ,
455455},
456456},
457457{
@@ -566,36 +566,36 @@ func TestConfigSSH_FileWriteAndOptionsFlow(t *testing.T) {
566566name :"Header command" ,
567567args : []string {
568568"--yes" ,
569- "--header-command" ,"printf h1=v1" ,
569+ "--header-command" ,"echo h1=v1" ,
570570},
571571wantErr :false ,
572572hasAgent :true ,
573573wantConfig :wantConfig {
574- regexMatch :`ProxyCommand .* --header-command "printf h1=v1" ssh .* --ssh-host-prefix coder. %h` ,
574+ regexMatch :`ProxyCommand .* --header-command "echo h1=v1" ssh .* --ssh-host-prefix coder. %h` ,
575575},
576576},
577577{
578578name :"Header command with double quotes" ,
579579args : []string {
580580"--yes" ,
581- "--header-command" ,"printf h1=v1 h2=\" v2\" " ,
581+ "--header-command" ,"echo h1=v1 h2=\" v2\" " ,
582582},
583583wantErr :false ,
584584hasAgent :true ,
585585wantConfig :wantConfig {
586- regexMatch :`ProxyCommand .* --header-command "printf h1=v1 h2=\\\"v2\\\"" ssh .* --ssh-host-prefix coder. %h` ,
586+ regexMatch :`ProxyCommand .* --header-command "echo h1=v1 h2=\\\"v2\\\"" ssh .* --ssh-host-prefix coder. %h` ,
587587},
588588},
589589{
590590name :"Header command with single quotes" ,
591591args : []string {
592592"--yes" ,
593- "--header-command" ,"printf h1=v1 h2='v2'" ,
593+ "--header-command" ,"echo h1=v1 h2='v2'" ,
594594},
595595wantErr :false ,
596596hasAgent :true ,
597597wantConfig :wantConfig {
598- regexMatch :`ProxyCommand .* --header-command "printf h1=v1 h2='v2'" ssh .* --ssh-host-prefix coder. %h` ,
598+ regexMatch :`ProxyCommand .* --header-command "echo h1=v1 h2='v2'" ssh .* --ssh-host-prefix coder. %h` ,
599599},
600600},
601601{