sh-realpath
sh-realpath copied to clipboard
local: not found (No such file or directory)
The local
keyword is not 100% portable if /bin/sh
is indeed the Bourne Shell, or if it is an alias to ksh93 (such as on Solaris / illumos), which uses typeset
instead. (Reference) In that case using any of the functions will report a local: not found (No such file or directory)
error.