Having some trouble getting $PWD to work inside a bash script...
I have two scripts in the same directory:
~/outer.sh, ~/inner.sh. I use outer.sh to call inner.sh as follows:
(outer.sh contents shown below)
#!/bin/bash
$PWD/inner.sh
But this seems not to work. Further investigation shows that $PWD appears inaccessible as I've used it here (nothing appears with printf $PWD >> logfile.txt), and I suspect it has something to do with calling a script from a script... can anyone clarify what's going on here?