summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/pkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pkg b/bin/pkg
index da5ca2e..4397a9f 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -36,7 +36,7 @@ function debug {
# I need function name and line number of the function _calling_ debug,
# so I can't get them from inside the debug function.
-alias debug='debug ${(%)$(echo %N)} ${(%)$(echo %i)}'
+alias debug='debug ${(%):-%N} ${(%):-%i}'
function info {
(( SILENT )) || echo -ne "${info}$*${reset}"