From e9b78ee15f995a58df5bf95544ff2ad659a244b9 Mon Sep 17 00:00:00 2001 From: William Melody Date: Mon, 19 Oct 2015 16:29:06 -0700 Subject: [PATCH] Include debug statements in `add()` to print positional arguments. --- hosts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts b/hosts index ab98088..cdb2e73 100755 --- a/hosts +++ b/hosts @@ -673,6 +673,10 @@ Description: Add a given IP address and hostname pair, along with an optional comment. EOM add() { + _debug printf "add() \$1: %s\n" "${1:-}" + _debug printf "add() \$2: %s\n" "${2:-}" + _debug printf "add() \$3: %s\n" "${3:-}" + _verify_write_permissions local ip=${1:-} local hostname=${2:-}