Because $RealBin works in those circumstances, and $Bin doesn't. Worse, $Bin can cause the wrong code to be executed, and this could result if a privilege escalation.
Those circumstances being the use of a link to the script.
In reply to Re^4: Relative path in test file
by ikegami
in thread Relative path in test file
by Dirk80
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |