From f20d55ea500a1313c952899c7816ec7a1de83b50 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 6 Dec 2008 15:37:17 +0100 Subject: pkg: Simplified expansion in debug alias --- bin/pkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/pkg') 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}" -- cgit v1.2.3