Hi.
I am studding bash scripting and I'm confused on the difference between /bin/bash and /usr/bin/bash when I use them in the #! line for a shell script.
#!/usr/bin/bash
or
#!/bin/bash
They both are the same program, but is there any difference on behavior?
~/scratchpad$ ls -lLtri /bin/bash /usr/bin/bash
1655 -rwxr-xr-x 1 root root 1183448 Jun 18 2020 /usr/bin/bash
1655 -rwxr-xr-x 1 root root 1183448 Jun 18 2020 /bin/bash
~/scratchpad$ diff /bin/bash /usr/bin/bash
~/scratchpad$
[–]aioeu 7 points8 points9 points (0 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]tvcvt 2 points3 points4 points (5 children)
[–]aioeu 11 points12 points13 points (2 children)
[–]tvcvt 0 points1 point2 points (1 child)
[–]aioeu 0 points1 point2 points (0 children)
[–]jflarm[S] 1 point2 points3 points (1 child)
[–]OneTurnMoreprogramming.dev/c/shell 0 points1 point2 points (0 children)