Right now you can’t use \for-loops in functions, which is a pity.
diff --git a/src/cmd_do.c b/src/cmd_do.c
index e110c95..1953573 100644
--- a/src/cmd_do.c
+++ b/src/cmd_do.c
@@ -630,6 +630,7 @@ int cmd_body_input( buf )
}
else if ((strcmp( cmd, "do" ) == 0) ||
strcmp( cmd, "func" ) == 0 ||
+ strcmp( cmd, "for" ) == 0 ||
strcmp( cmd, "while" ) == 0)
{
/*
Thanks for this functionality improvement. I will incorporate it in the upcoming sqsh-2.3 release.