summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-12-06 15:37:17 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2008-12-06 15:37:21 +0100
commitf20d55ea500a1313c952899c7816ec7a1de83b50 (patch)
tree78723577ccd6679c58d7e288a5019919250f2b06 /bin/pkg
parente46c724442949758b9e0a65293a1ac81cc22e059 (diff)
pkg: Simplified expansion in debug alias
Diffstat (limited to 'bin/pkg')
-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}"