add 1023/2047 array elts mentioning to manpage
This commit is contained in:
tg 2004-09-21 14:03:58 +00:00
parent ecdd4d5568
commit 06411e2978
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,4 @@
.\" $MirBSD: ksh.1tbl,v 1.29 2004/08/27 14:21:42 tg Stab $ .\" $MirBSD: ksh.1tbl,v 1.30 2004/09/21 14:03:58 tg Exp $
.\" $OpenBSD: ksh.1tbl,v 1.72 2004/08/07 16:46:58 millert Exp $ .\" $OpenBSD: ksh.1tbl,v 1.72 2004/08/07 16:46:58 millert Exp $
.\" .\"
.\" Copyright (c) 1980, 1990, 1993 .\" Copyright (c) 1980, 1990, 1993
@ -1054,7 +1054,11 @@ form
where where
.Ar expr .Ar expr
is an arithmetic expression. is an arithmetic expression.
Array indices are currently limited to the range 0 through 1023, inclusive. Array indices are currently limited to the range 0 through 2047 (for
.Nm mirbsdksh )
or 1023 (for
.Nm pdksh ) ,
inclusive.
Parameter substitutions take the form Parameter substitutions take the form
.Ic $ Ns Ar name , .Ic $ Ns Ar name ,
.Ic ${ Ns Ar name Ns Ic \&} .Ic ${ Ns Ar name Ns Ic \&}

4
path.c
View File

@ -1,4 +1,4 @@
/** $MirBSD: path.c,v 1.3 2004/09/21 11:57:13 tg Exp $ */ /** $MirBSD: path.c,v 1.4 2004/09/21 14:03:58 tg Exp $ */
/* $OpenBSD: path.c,v 1.9 2003/10/22 07:40:38 jmc Exp $ */ /* $OpenBSD: path.c,v 1.9 2003/10/22 07:40:38 jmc Exp $ */
#include "sh.h" #include "sh.h"
@ -243,7 +243,7 @@ do_phys_path(xsp, xp, path)
const char *p, *q; const char *p, *q;
int len, llen; int len, llen;
int savepos; int savepos;
char lbuf[PATH]; char lbuf[PATH_MAX];
Xcheck(*xsp, xp); Xcheck(*xsp, xp);
for (p = path; p; p = q) { for (p = path; p; p = q) {