Gettings the `which application` output in Bash
- by Prudnikov
Here is my original question at StackOverflow.com
This is the script I wrote
#!/usr/bin/env bash
GP=`/usr/bin/which git`
PWD=`pwd`
echo "PATH IS: ${GP}"
echo "PWD IS: ${PWD}"
and output is
PATH IS:
PWD IS: /Users/user/tmp
So the question is how to get which git output? I'm running it on Mac OS X 10.6.2.