0

I am using OS X 10.8.5. I am trying to figure out if the terminal is running bash. When I type in the following it says "getent" command not found -- but the error message seems to be coming from bash.

Me$ getent passwd $(whoami) | awk -F: '{print $NF}'
-bash: getent: command not found

Am I running bash?

bernie2436
  • 6,655

1 Answers1

3

Your shell is bash and you have it trying to run getent. The reason it puts -bash: before getent: command not found is because otherwise it would look like getent was telling you it couldn't find a command.

kurtm
  • 7,055