apenwarr-redo/minimal
Avery Pennarun 9aa8061e83 minimal/do: fix a bug when $PWD != $(/bin/pwd).
This can happen when $PWD contains a symlink somewhere in the path.  In
that case, "cd ..; cat x" could mean something different from "cat ../x".

Notably, this error occurs when running "./do test" if your build
directory is through a symlink.  For example, on freebsd your home
directory is /home/$USER, but /home is a symlink to /usr/home, which
triggers this problem.

Not adding tests in this commit, because when I added some tests, I
found even more symlink-related bugs, but those ones are much more
unlikely to occur.  The additional fixes+tests are in a later commit.
2018-12-17 16:14:08 +00:00
..
fakedir minimal/do: add redo-whichdo support and internal unit tests. 2018-11-02 02:20:52 -04:00
default.zz.do minimal/do: add redo-whichdo support and internal unit tests. 2018-11-02 02:20:52 -04:00
do minimal/do: fix a bug when $PWD != $(/bin/pwd). 2018-12-17 16:14:08 +00:00
do.test Use mkstemp() to create the stdout temp file, and simplify $3 path. 2018-12-13 13:28:44 +00:00
test.do minimal/do: add redo-whichdo support and internal unit tests. 2018-11-02 02:20:52 -04:00