fix PATH
add 1023/2047 array elts mentioning to manpage
This commit is contained in:
parent
ecdd4d5568
commit
06411e2978
8
ksh.1tbl
8
ksh.1tbl
@ -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 $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1990, 1993
|
||||
@ -1054,7 +1054,11 @@ form
|
||||
where
|
||||
.Ar expr
|
||||
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
|
||||
.Ic $ Ns Ar name ,
|
||||
.Ic ${ Ns Ar name Ns Ic \&}
|
||||
|
4
path.c
4
path.c
@ -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 $ */
|
||||
|
||||
#include "sh.h"
|
||||
@ -243,7 +243,7 @@ do_phys_path(xsp, xp, path)
|
||||
const char *p, *q;
|
||||
int len, llen;
|
||||
int savepos;
|
||||
char lbuf[PATH];
|
||||
char lbuf[PATH_MAX];
|
||||
|
||||
Xcheck(*xsp, xp);
|
||||
for (p = path; p; p = q) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user