andreano wrote:If only we could get rid of the symlinks too… Every time I create a script beginning with #!/bin/sh, I feel bad.
What has that got to do with symlinks?andreano wrote:If only we could get rid of the symlinks too… Every time I create a script beginning with #!/bin/sh, I feel bad.
Ken-Bergen wrote:#!/bin/sh is only needed in scripts called where no path has been set as in boot scripts, scripts run by a user /root or other don't need it.
/bin → /usr/bin
/sbin → /usr/sbin
/lib → /usr/lib
/lib64 → /usr/lib64
which is further complicating business. I bet the doctor knows this perfectly well, but let's say /bin/sh was a bad example. For the curious, this one will be a double indirection:doktor5000 wrote:/bin/sh is only a symlink to the default shell.
#!bash
echo "bonjour"
Users browsing this forum: No registered users and 1 guest