So I have two sample scripts below. Within the b.sh, I'd like to get the dirname of b.sh without passing parameters to it. Is there a simple method?

a.sh
#!/bin/ksh
echo "a: <$0>"
ScriptDir=`dirname $0`
. ${ScriptDir}/b.sh

b.sh
#!/bin/ksh
echo "b: <$0>"