From 6777520d3c5d1bed21301cff1b3bc56b0133bb1e Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Thu, 3 May 2012 19:10:29 -0500 Subject: [PATCH] argv: turns arguments into lines (useful for testing shell quotes) --- bin/argv | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/argv diff --git a/bin/argv b/bin/argv new file mode 100755 index 0000000..33c5c8e --- /dev/null +++ b/bin/argv @@ -0,0 +1,10 @@ +#!/bin/sh +# Usage: argv +# Dump arguments +set -e +count=0 +for a in "$@" +do + count=$(( count + 1 )) + echo "$count: $a" +done -- 2.45.2