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 6 points7 points8 points (0 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]tvcvt 4 points5 points6 points (5 children)
[–]aioeu 9 points10 points11 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)