2 # shellcheck disable=SC2154
4 # Log all environment variables to ZED_DEBUG_LOG.
6 # This can be a useful aid when developing/debugging ZEDLETs since it shows the
7 # environment variables defined for each zevent.
9 [ -f "${ZED_ZEDLET_DIR}/zed.rc" ] && .
"${ZED_ZEDLET_DIR}/zed.rc"
10 .
"${ZED_ZEDLET_DIR}/zed-functions.sh"
12 : "${ZED_DEBUG_LOG:="${TMPDIR:="/tmp"}/zed.debug.log"}"
14 zed_exit_if_ignoring_this_event
16 zed_lock
"${ZED_DEBUG_LOG}"
20 } 1>&"${ZED_FLOCK_FD}"
21 zed_unlock
"${ZED_DEBUG_LOG}"