Top "Dirname" questions

bash: dirname: command not found

I'm trying to run a code I found online. There's a shell script in it, but every time I try …

bash shell command-line git-bash dirname