#!/gnu/usr/bin/bash

while [ $# -ge 1 ]; do
	echo "$1"
	# 'shift 2' doesn't work here because it fails when there's only 1
	# parameter.  The two shifts one after the other like this is ugly,
	# but the alternative (using at least one if statement) is uglier.
	shift
	shift
done

