diff options
author | Mike Burns <mike@mike-burns.com> | 2014-01-27 13:41:55 +0100 |
---|---|---|
committer | Mike Burns <mike@mike-burns.com> | 2014-01-27 13:41:55 +0100 |
commit | d9a6fa460e4987c3d07b8188f893eaa73896219b (patch) | |
tree | a6bfe03b18c42d6dd0aa70dfebe9970f7882684b /arch/PKGBUILD | |
parent | 4b163f5565269faadc64995a3a903fa28c65f7b3 (diff) |
Unset the CDPATH before running the program
As reported in #23, you can trick `rcup` into installing into `.` with
this `CDPATH`:
export CDPATH=/tmp:.
As described [online][1], it is a mistake to export the `CDPATH`
environment variable to begin with. Since it is a one-liner to work
around it, though, it's worth fixing.
The workaround is to unset `CDPATH` at the beginning of the script. This
does not affect the outside environment, it only affects the script and
its functions.
[1]: http://bosker.wordpress.com/2012/02/12/bash-scripters-beware-of-the-cdpath/
Diffstat (limited to 'arch/PKGBUILD')
0 files changed, 0 insertions, 0 deletions