From 19598510f929d3722c055f439dc499771d3944ee Mon Sep 17 00:00:00 2001 From: Jan Pokorný Date: Wed, 5 Jun 2013 13:55:10 +0200 Subject: .bashrc: add debug-argsep to debug input arguments splitting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Pokorný --- .bashrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.bashrc b/.bashrc index c50dc5a..653efa2 100644 --- a/.bashrc +++ b/.bashrc @@ -44,3 +44,10 @@ ack-intersection () { [ $# -ne 2 ] && echo "usage: $FUNCNAME 1st-regexp 2nd-regexp" && return comm <(ack -al --follow "Topic" | sort) <(ack -al --follow "news" | sort) -12 } + +debug-argsep () { + while [ $# -ne 0 ]; do + echo $1; + shift + done +} -- cgit