A nice patch from Larry Doolittle that adds -Wshadow and
cleans up most of the now-revealed problems.
diff --git a/echo.c b/echo.c
index e9bc50a..1ca3734 100644
--- a/echo.c
+++ b/echo.c
@@ -40,7 +40,7 @@
while (argc > 0 && *argv[0] == '-')
{
register char *temp;
- register int index;
+ register int ix;
/*
* If it appears that we are handling options, then make sure
@@ -49,9 +49,9 @@
*/
temp = argv[0] + 1;
- for (index = 0; temp[index]; index++)
+ for (ix = 0; temp[ix]; ix++)
{
- if (strrchr("neE", temp[index]) == 0)
+ if (strrchr("neE", temp[ix]) == 0)
goto just_echo;
}