title: 'command not found' when trying to run bash script
body: <p>I am trying to run a bash script from a script called <strong>dev_ro</strong>, here is how it's being called. </p>
  
  <pre><code>export SUBNET="$(first_available_docker_network --lock-seconds 7200)"
  </code></pre>
  
  <p>I am calling dev_ro by ./dev_ro </p>
  
  <p>I am confirm I have</p>
  
  <pre><code>#!/bin/bash
  </code></pre>
  
  <p>at the top of both files. </p>
  
  <p>Here are perms for both files</p>
  
  <pre><code> $ ls -lh dev_ro 
  -rwxrwxr-x 1 ME ME 423 Aug 21 15:57 dev_ro
  
  $ ls -lh first_available_docker_network
  -rwxrwxr-x 1 ME ME 2.2K Aug 21 15:55 first_available_docker_network
  </code></pre>
  
  <p>This is the output from running ./dev_ro </p>
  
  <pre><code>++ first_available_docker_network --lock-seconds 7200
  compose/everest-compose: line 25: first_available_docker_network: command not found
  </code></pre>
  
  <p>Additionally when I try to run the script:</p>
  
  <pre><code>ME@SERVER:~/Rosetta/compose$ first_available_docker_network
  first_available_docker_network: command not found
  ME@SERVER:~/Rosetta/compose$ 
  </code></pre>
  
  <p>I have the same setup running on a different server and it's working. The code was pulled from Git, so it's the same codebase. </p>
  
  <p>Any help is much appreciated. </p>
  
  <pre><code>ME@OTHER_SERVER:~/Rosetta/compose$ first_available_docker_network
  DEBUG:root:Docker subnets: [IPv4Network(... etc
  ME@OTHER_SERVER:~/Rosetta/compose$ ^C
  </code></pre>