I have GitforWindows 2.20.1 installed in Windows 7 64Bit.
Now as I stated in the question, the multiple variable assignment syntax is not always working, especially when the value to be assigned is a command's output, i.e.:
read -r a b c <<< $(echo 1 2 3) ; echo "$a|$b|$c"
works, but these doesn't:
read -r SCRIPTDIR MAGE2ROOT <<< $(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
## OR ##
read -r -d "\n" SCRIPTDIR MAGE2ROOT <<< $(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
cause if I print the output just after this like:
echo $SCRIPTDIR && echo $MAGE2ROOT && exit
it just prints the path once. Why? And how can we make it work ?
Any help/guidance required.