document “export -” accident found by Snader_LB

This commit is contained in:
tg 2011-10-24 19:41:13 +00:00
parent 3b9ec6c3c4
commit 5893a36bad
3 changed files with 12 additions and 11 deletions

View File

@ -1,4 +1,4 @@
# $MirOS: src/bin/mksh/check.t,v 1.483 2011/10/07 19:51:42 tg Exp $
# $MirOS: src/bin/mksh/check.t,v 1.484 2011/10/24 19:41:09 tg Exp $
# $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $
# $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $
# $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $
@ -25,7 +25,7 @@
# http://www.research.att.com/~gsf/public/ifs.sh
expected-stdout:
@(#)MIRBSD KSH R40 2011/10/07
@(#)MIRBSD KSH R40 2011/10/24
description:
Check version of shell.
stdin:

15
mksh.1
View File

@ -1,4 +1,4 @@
.\" $MirOS: src/bin/mksh/mksh.1,v 1.275 2011/10/07 19:51:29 tg Exp $
.\" $MirOS: src/bin/mksh/mksh.1,v 1.276 2011/10/24 19:41:11 tg Exp $
.\" $OpenBSD: ksh.1,v 1.141 2011/09/03 22:59:08 jmc Exp $
.\"-
.\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
@ -72,7 +72,7 @@
.\" with -mandoc, it might implement .Mx itself, but we want to
.\" use our own definition. And .Dd must come *first*, always.
.\"
.Dd $Mdocdate: October 7 2011 $
.Dd $Mdocdate: October 24 2011 $
.\"
.\" Check which macro package we use
.\"
@ -3294,12 +3294,13 @@ Sets the export attribute of the named parameters.
Exported parameters are passed in the environment to executed commands.
If values are specified, the named parameters are also assigned.
.Pp
If no parameters are specified, the names of all parameters with the export
attribute are printed one per line, unless the
.Fl p
option is used, in which case
If no parameters are specified, all parameters with the export attribute
set are printed one per line; either their names, or, if a
.Ql \-
with no option letter is specified, name=value pairs, or, with
.Fl p ,
.Ic export
commands defining all exported parameters, including their values, are printed.
commands suitable for re-entry.
.Pp
.It Ic false
A command that exits with a non-zero status.

4
sh.h
View File

@ -151,9 +151,9 @@
#endif
#ifdef EXTERN
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.495 2011/10/07 19:51:44 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.496 2011/10/24 19:41:13 tg Exp $");
#endif
#define MKSH_VERSION "R40 2011/10/07"
#define MKSH_VERSION "R40 2011/10/24"
#ifndef MKSH_INCLUDES_ONLY