2014-01-22 01:30:03 +04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Log all environment variables to ZED_DEBUG_LOG.
|
|
|
|
#
|
2015-02-18 04:23:54 +03:00
|
|
|
# This can be a useful aid when developing/debugging ZEDLETs since it shows the
|
|
|
|
# environment variables defined for each zevent.
|
2014-01-22 01:30:03 +04:00
|
|
|
|
2015-02-18 04:23:54 +03:00
|
|
|
[ -f "${ZED_ZEDLET_DIR}/zed.rc" ] && . "${ZED_ZEDLET_DIR}/zed.rc"
|
|
|
|
. "${ZED_ZEDLET_DIR}/zed-functions.sh"
|
|
|
|
|
|
|
|
: "${ZED_DEBUG_LOG:="${TMPDIR:="/tmp"}/zed.debug.log"}"
|
2014-01-22 01:30:03 +04:00
|
|
|
|
2018-03-07 02:41:52 +03:00
|
|
|
zed_exit_if_ignoring_this_event
|
|
|
|
|
2021-05-14 05:18:20 +03:00
|
|
|
zed_lock "${ZED_DEBUG_LOG}"
|
|
|
|
{
|
|
|
|
printenv | sort
|
|
|
|
echo
|
|
|
|
} 1>&"${ZED_FLOCK_FD}"
|
|
|
|
zed_unlock "${ZED_DEBUG_LOG}"
|
2015-02-18 04:23:54 +03:00
|
|
|
|
2014-01-22 01:30:03 +04:00
|
|
|
exit 0
|