If a bash script contains a relative path ( to specify a file, a directory, ...), which path is the relative path relative to,
- the pathname to the parent directory of the bash script, or
- the current directory where we run the bash script?
If I may ask, do similar questions in a Python script, in a Java program, in a C program, in a C++ program, .... have the same answer?
Thanks.
I don't see any similarity with the linked question. I am asking about what a relative path in a program is relative to.
pwd
outputs, i.e. the current "working directory". – jw013 Mar 20 '18 at 19:32