summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-07-05 23:54:04 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-07-05 23:54:04 (EDT)
commit2943e63b7a3222f1af2a777ed259a6fe2a321cde (patch)
tree82a40be6bae753bc3f5843b45cd4ee2c02323329 /lib
parent5b92ac2b7bb25493f67fe483a5f4f973015c8a94 (diff)
ob_init_package(): Defend against CDPATH in Bash
Why does Bash insist on breaking standard things?
Diffstat (limited to 'lib')
-rw-r--r--lib/package.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/package.sh b/lib/package.sh
index df129c7..138609c 100644
--- a/lib/package.sh
+++ b/lib/package.sh
@@ -80,7 +80,7 @@ ob_init_package()
local dir="${1}"
shift 1 || _ob_abort
- _ob_package_dir="$(cd -- "${dir}" && pwd)"
+ _ob_package_dir="$(unset CDPATH; cd -- "${dir}" && pwd)"
_ob_package_format_full="$(cat -- "${_ob_package_dir}/format")"
if [ -r "${_ob_package_dir}/format" ]; then