title: What's wrong with this bash script using cut and sed (cut: command not found)?
body: <p>I'm getting server and path from an NFS location in bash as follows:</p>
  
  <pre><code>#!/bin/bash
  
  ST="/net/10.111.111.111/path/to/some/dir"
  echo $ST
  SERVER=$(echo $ST | cut -d'/' -f3)
  echo $SERVER
  PATH=$(echo $ST | cut -d'/' -f4-)
  echo $PATH
  PATH=$(echo $ST | cut -d'/' -f4-)
  echo $PATH
  </code></pre>
  
  <p>The same 2 lines are repeated above on purpose.  The output is:</p>
  
  <pre><code>/net/10.111.111.111/path/to/some/dir
  10.111.111.111
  path/to/some/dir
  ./nn.sh: line 9: cut: command not found
  </code></pre>
  
  <p>I'm getting what I want but I don't understand why the second call to PATH= produces the above error.  What am I missing?</p>