Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/bin/sh



Module Name:    src
Committed By:   christos
Date:           Thu Mar 31 16:16:35 UTC 2016

Modified Files:
        src/bin/sh: expand.c main.c options.c options.h var.c var.h
Added Files:
        src/bin/sh: version.h

Log Message:
Implement the NETBSD_SHELL readonly unexportable unimportable
variable (with its current value set at 20160401) as discussed on
current-users and tech-userlevel. This also includes the necessary
support to implement it properly (particularly the unexportable
part) and adds options to the export command to support unexportable
variables. Also implement the "posix" option (no single letter
equivalent) which gets its default value from whether or not
POSIXLY_CORRECT is set in the environment when the shell starts
(but can be changed just like any other option using -o and +o on
the command line, or the set builtin command.) While there, fix
all uses of options so it is possible to have options that have a
short (one char) name, and no long name, just as it has been possible
to have options with a long name and no short name, though there
are currently none (with no long name).  For now, the only use of
the posix option is to control whether ${ENV} is read at startup
by a non-interactive shell, so changing it with set is not usful
- that might change in the future. (from kre@)


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 src/bin/sh/expand.c
cvs rdiff -u -r1.63 -r1.64 src/bin/sh/main.c
cvs rdiff -u -r1.45 -r1.46 src/bin/sh/options.c
cvs rdiff -u -r1.24 -r1.25 src/bin/sh/options.h
cvs rdiff -u -r1.48 -r1.49 src/bin/sh/var.c
cvs rdiff -u -r1.27 -r1.28 src/bin/sh/var.h
cvs rdiff -u -r0 -r1.1 src/bin/sh/version.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index