Hi, from this discussion: https://github.com/koalaman/shellcheck/issues/195#issuecomment-49678200
I can't find any reference that says substituting a literal tilde in PATH should occur during command search. $ ( cd ~ mkdir tmpdir echo $'#!/bin/sh\necho "Hello from ${BASH_SOURCE}!"' >~/tmpdir/testscript chmod u+x ~/tmpdir/testscript PATH=\~/tmpdir typeset -p PATH testscript ) declare -x PATH="~/tmpdir" Hello from /home/devtest/tmpdir/testscript! $ echo "$BASH_VERSION" 4.3.18(1)-release -- Dan Douglas