title: How do I open a program in bash that I do not know the path to
body: <p>The problem is that which is not storing the path to the program.</p>
  
  <pre><code>#!/bin/bash
  read -p "Enter progam name: " name
  path=which $name
  nano $path
  </code></pre>