In reply to Re^7: Getting the absolute path of a script, without PWD (bug?)(update) by perlancar in thread Getting the shell's version of working directory, without PWD's help by perlancar