title: Problems with fish shell and ssh remote commands
body: <p>I use fish shell on my desktop.</p>
  
  <p>We use many servers running nginx within docker. I've tried to create a function so I can ssh to the servers and then log into the docker.</p>
  
  <p>The problem is fish is complaining about the $ in the command, but the command is the one to be executed on the remote server (running bash), not on my machine running fish. I've simplified the script to make it easier to see.</p>
  
  <p>config.fish snippet</p>
  
  <pre><code>function ssh-docker-nginx
  ssh -t sysadmin@10.10.10.10 "sudo bash &amp;&amp; docker exec -it $(docker ps | grep -i nginx | awk '{print $1}') bash"
  end
  </code></pre>
  
  <p>Fish error:</p>
  
  <pre><code>$(...) is not supported. In fish, please use '(docker)'.
  ~/.config/fish/config.fish (line 59): ssh -t sysadmin@10.10.10.10 "sudo bash &amp;&amp; docker exec -it $(docker ps | grep -i nginx | awk '{print $1}') bash"
                                                                                              ^
  from sourcing file ~/.config/fish/config.fish
  called during startup
  </code></pre>
  
  <p>Is there a way to get fish to ignore this?</p>