an array shalt have 4096 entries max.

This commit is contained in:
tg 2004-10-28 16:49:13 +00:00
parent 78a5e1d662
commit ee2d2797a4
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
.\" $MirBSD: ksh.1tbl,v 1.33 2004/10/28 16:35:02 tg Exp $
.\" $MirBSD: ksh.1tbl,v 1.34 2004/10/28 16:49:13 tg Exp $
.\" $OpenBSD: ksh.1tbl,v 1.72 2004/08/07 16:46:58 millert Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
@ -1068,8 +1068,8 @@ form
where
.Ar expr
is an arithmetic expression.
Array indices are currently limited to the range 0 through 2047 (for
.Nm mirbsdksh )
Array indices are currently limited to the range 0 through 4095 (for
.Nm mksh )
or 1023 (for
.Nm pdksh ) ,
inclusive.

4
sh.h
View File

@ -1,4 +1,4 @@
/** $MirBSD: sh.h,v 1.15 2004/10/28 11:53:43 tg Exp $ */
/** $MirBSD: sh.h,v 1.16 2004/10/28 16:49:13 tg Exp $ */
/* $OpenBSD: sh.h,v 1.18 2004/05/31 10:36:35 otto Exp $ */
#ifndef SH_H
@ -352,7 +352,7 @@ typedef INT32 Tflag;
#ifndef PATH_MAX
#define PATH_MAX 1024 /* pathname size (todo: pathconf()) */
#endif
#define ARRAYMAX 2047 /* max array index */
#define ARRAYMAX 4095 /* max array index */
EXTERN const char *kshname; /* $0 */
EXTERN pid_t kshpid; /* $$, shell pid */