I added this line into my
And and inside of init.sh I am trying to get the path of
init.sh but I am not able to.
I tried this so far:
CURDIR=`/bin/pwd` BASEDIR=$(dirname $0) ABSPATH=$(readlink -f $0) ABSDIR=$(dirname $ABSPATH) REAL=$(realpath $0) echo "CURDIR is $CURDIR" echo "BASEDIR is $BASEDIR" echo "ABSPATH is $ABSPATH" echo "ABSDIR is $ABSDIR" echo "REAL is $REAL"
CURDIR is /mnt/c/Users/enzo BASEDIR is /bin ABSPATH is /bin/bash ABSDIR is /bin REAL is /bin/bash
I'm under windows subsystem for linux.