title: How to escape colon (:) in $PATH on UNIX?
body: <p>I need to parse the <code>$PATH</code> environment variable in my application.
  So I was wondering what escape characters would be valid in <code>$PATH</code>.</p>
  <p>I created a test directory called <code>/bin:d</code> and created a test script called <code>funny</code> inside it. It runs if I call it with an absolute path.
  I just can't figure out how to escape <code>:</code> in <code>$PATH</code> I tried escaping the colon with <code>\</code> and wrapping it into single <code>'</code> and double <code>&quot;</code> quotes. But always when I run <code>which funny</code> it can't find it.</p>
  <p>I'm running CentOS 6.</p>