From e2ddd1538e17aeceb32fb5c848464fd0a78692ef Mon Sep 17 00:00:00 2001 From: Jan Pokorný Date: Tue, 25 Feb 2014 18:43:29 +0100 Subject: Bash config: preexec paging hack: allow for expansions via eval MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Pokorný --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 1416a5d..8faa268 100644 --- a/.bashrc +++ b/.bashrc @@ -135,7 +135,7 @@ preexec() { case "$1" in rpm\ *|yum\ list\ *) _preexec_flag=1 - ${1} <&- 2>&1 | ${PAGER} + eval "${1} <&- 2>&1 | ${PAGER}" trap "_preexec_flag=0; trap - RETURN;" RETURN return 2 ;; -- cgit