From fae0a7b20ca15c2907e298d3342988f33befd343 Mon Sep 17 00:00:00 2001 From: binaryDiv Date: Tue, 25 Feb 2020 02:50:19 +0100 Subject: [PATCH] .bashrc: add debug function dumpargs --- .bashrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.bashrc b/.bashrc index 21ecb0c..0bb9317 100644 --- a/.bashrc +++ b/.bashrc @@ -131,6 +131,13 @@ lscat() { done } +# Dump arguments with newlines and quotes +dumpargs() { + for a in "$@"; do + echo "\"$a\"" + done +} + # Load z [[ -r "/usr/share/z/z.sh" ]] && source /usr/share/z/z.sh