{"id":8017,"date":"2015-11-21T13:38:03","date_gmt":"2015-11-21T13:38:03","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/11\/21\/fish-shell-pass-argument-from-command-open-source-projects-fish-shell-fish-shell\/"},"modified":"2022-08-30T15:03:04","modified_gmt":"2022-08-30T15:03:04","slug":"fish-shell-pass-argument-from-command-open-source-projects-fish-shell-fish-shell","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/11\/21\/fish-shell-pass-argument-from-command-open-source-projects-fish-shell-fish-shell\/","title":{"rendered":"fish shell pass argument from command-open source projects fish-shell\/fish-shell"},"content":{"rendered":"<p>I&#8217;m trying to use fish with docker machine with docker client in fish shell. I can run <code>docker-machine config dev<\/code> and it would give me the parameters to pass to <code>docker<\/code>. But when I tried to do that <code>docker (docker-machine config dev) ps<\/code> it would say <code>flag provided but not defined: --tls --tlscacert<\/code><\/p>\n<p>If I switch my shell to bash then <code>docker $(docker-machine config dev) ps<\/code> works fine. So what&#8217;s wrong with the syntax here?<\/p>\n<p>I tried googling for the answer, seems like that error is related to Go, maybe?<\/p>\n<p>Docker version 1.5.0, build a8a31ef<\/p>\n<p>fish, version 2.1.1<\/p>\n<p><strong>EDIT:<\/strong> Here is the output of <code>docker-machine config dev<\/code><\/p>\n<p><code>--tls --tlscacert=\/Users\/me\/.docker\/machine\/machines\/dev\/ca.pem --tlscert=\/Users\/me\/.docker\/machine\/machines\/dev\/cert.pem --tlskey=\/Users\/me\/.docker\/machine\/machines\/dev\/key.pem -H=\"tcp:\/\/192.168.99.102:2376\"<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to use fish with docker machine with docker client in fish shell. I can run docker-machine config dev and it would give me the parameters to pass to docker. But when I tried to do that docker (docker-machine config dev) ps it would say flag provided but not defined: &#8211;tls &#8211;tlscacert If I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8017","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=8017"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8017\/revisions"}],"predecessor-version":[{"id":8693,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8017\/revisions\/8693"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=8017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=8017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=8017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}