CVS commit: src/bin/sh

"Robert Elz" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	kre
Date:		Thu May 28 10:07:58 UTC 2026

Modified Files:
	src/bin/sh: exec.c exec.h histedit.c myhistedit.h options.c options.h
	    sh.1 var.c var.h

Log Message:
PR bin/58609 - enable locale var internal manipulation

sh now recognises the (standard) set of locale variables, and in addition
to setting up the locale environment to match those in the environment at
startup (which it has done for ages), now also causes alterations to those
variables while the shell is running to take immediate effect inside sh,
which can affect how the shell operates in some limited aspects - previously
such updates would be passed to exec'd child processes (not subshells)
if the variables are exported, and not affect the running shell at all.

See the PR, and the updated sh(1) man page, for details.

This is a feature enhancement, no pullups (not even to -11) are planned.


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/bin/sh/exec.c
cvs rdiff -u -r1.28 -r1.29 src/bin/sh/exec.h src/bin/sh/options.h
cvs rdiff -u -r1.73 -r1.74 src/bin/sh/histedit.c
cvs rdiff -u -r1.16 -r1.17 src/bin/sh/myhistedit.h
cvs rdiff -u -r1.62 -r1.63 src/bin/sh/options.c
cvs rdiff -u -r1.276 -r1.277 src/bin/sh/sh.1
cvs rdiff -u -r1.90 -r1.91 src/bin/sh/var.c
cvs rdiff -u -r1.41 -r1.42 src/bin/sh/var.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.