Indizierungen ueber Arraygrenzen ausgebaut.
Change-Id: I86085405bf3a2f1ba5dd625538f03177ca4f491d
diff --git a/std/shells/magier/fileview.c b/std/shells/magier/fileview.c
index 41a8755..6b41b71 100644
--- a/std/shells/magier/fileview.c
+++ b/std/shells/magier/fileview.c
@@ -314,7 +314,8 @@
{
if (!sizeof(arg)) return;
printf("more: Naechste Datei: %s\n",arg[0]);
- More(arg[0],1,#'_more_file,({ arg[1..]}));
+ More(arg[0],1,#'_more_file,
+ (sizeof(arg)>1 ? ({ arg[1..]}) : ({})) );
return;
}
@@ -388,7 +389,10 @@
break;
case "tail": tail(args[0]); break;
}
- args=args[1..];
+ if (sizeof(args) > 1)
+ args=args[1..];
+ else
+ break;
}
return 1;
}