Skip to content

Commit

Permalink
sh.1: update doc on exporting/importing attributes
Browse files Browse the repository at this point in the history
Also move it to the correct section, and add a deprecation notice.
  • Loading branch information
McDutchie committed Jan 25, 2024
1 parent 19701b6 commit bf61634
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/cmd/ksh93/sh.1
Original file line number Diff line number Diff line change
Expand Up @@ -1104,9 +1104,6 @@ The attributes supported by the shell are described
later with the
.B typeset\^
special built-in command.
Exported variables pass their attributes to the environment so that a newly
invoked ksh that is a child or exec'd process of the current shell will
automatically import them, unless the \fBposix\fR shell option is on.
.PP
The shell supports both indexed and associative arrays.
An element of an array variable is referenced by a
Expand Down Expand Up @@ -3961,6 +3958,15 @@ or
.B typeset \-x
commands.
.PP
Exported variables pass their attributes though the environment so that a
newly invoked ksh that is a child or exec'd process of the current shell
will automatically import them, unless the \fBposix\fR shell option is on.
As of ksh 93u+m/1.0, this never includes the
.B readonly
attribute.
Passing attributes through the environment is deprecated
and this feature will be removed in ksh 93u+m/1.1.
.PP
The environment for any
.I simple-command\^
or function
Expand Down

0 comments on commit bf61634

Please sign in to comment.