#!/bin/sh
set -e
# The test expects to get ./argv_shell, while the shell gives us only
# "argv_shell". This is because mood exec's("argv_shell", "./argv_shell"),
# and the shell leaves argv[0] alone (replacing 1 with 2 and so on). Of
# course mood could be changed to exec("argv_shell", "./argv_shell"), but
# the only benefit would be simplifying this regression test..
echo ./$0
echo $#
for arg in "$@"; do
	echo $arg
done
