summaryrefslogtreecommitdiff
path: root/test/rcup-hooks.t
Commit message (Collapse)AuthorAge
* Set the LOGNAME from whoamiGravatar Mike Burns2018-07-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Well, $LOGNAME is defined by POSIX (see a801c4c58902cae7b835d890487edc39bd7da142) but it's not appearing in reality under clean environments: ~% env -i /bin/bash mike:/home/mike$ echo $LOGNAME mike:/home/mike$ exit ~% env -i /bin/dash $ echo $LOGNAME $ exit ~% env -i /bin/ksh $ echo $LOGNAME $ exit ~% env -i /usr/bin/zsh ~% echo $LOGNAME mike ~% exit Fall back to whoami(1) when $LOGNAME is not set. Modify one of the tests to run with a restricted environment in order to test this. I had tried modifying the test-driver to run all tests in a restricted environment but the test-driver script is generated by Automake. Closes #165.
* Run hooks on rcdn as indicated by the manpageGravatar Ben Turrubiates2015-01-07
- Make sure IFS in rcup and rcdn isn't left in an incorrect state when the output of lsrc is empty. - Add tests to check that hooks run on rcdn and rcup by default.