Thorsten Glaser | 6 Jul 19:48 2015

CVS: herc.mirbsd.org: src

Commit ID:	100559ABF230C8CC8EB
CVSROOT:	/cvs
Module name:	src
Changes by:	tg@...	2015/07/06 17:48:39 UTC

Modified files:
	bin/mksh       : Build.sh check.t exec.c funcs.c main.c mksh.1 sh.h

Log message:
• revert the cat hack for realpath and rename
  ‣ I was convinced by several that more magic is never the solution
• fix a comment: function cat already had precedence
• change cat loader to look for existence, FPATH included, before
  ditching the builtin; note that in manpage

To generate a diff of this changeset, execute the following commands:
cvs -R rdiff -kk -upr1.680 -r1.681 src/bin/mksh/Build.sh
cvs -R rdiff -kk -upr1.698 -r1.699 src/bin/mksh/check.t
cvs -R rdiff -kk -upr1.154 -r1.155 src/bin/mksh/exec.c
cvs -R rdiff -kk -upr1.276 -r1.277 src/bin/mksh/funcs.c
cvs -R rdiff -kk -upr1.294 -r1.295 src/bin/mksh/main.c
cvs -R rdiff -kk -upr1.372 -r1.373 src/bin/mksh/mksh.1
cvs -R rdiff -kk -upr1.733 -r1.734 src/bin/mksh/sh.h

Thorsten Glaser | 6 Jul 19:49 2015

CVS: herc.mirbsd.org: www

Commit ID:	100559ABFAE73674994
CVSROOT:	/cvs
Module name:	www
Changes by:	tg@...	2015/07/06 17:49:14 UTC

Modified files:
	users/tg       : WPtg.inc
	src            : mksh.hts

Log message:
sync clog

To generate a diff of this changeset, execute the following commands:
cvs -R rdiff -kk -upr1.241 -r1.242 www/users/tg/WPtg.inc
cvs -R rdiff -kk -upr1.587 -r1.588 www/src/mksh.hts

Thorsten Glaser | 6 Jul 19:45 2015

CVS: herc.mirbsd.org: src

Commit ID:	100559ABECD5E3E334C
CVSROOT:	/cvs
Module name:	src
Changes by:	tg@...	2015/07/06 17:45:34 UTC

Modified files:
	bin/mksh       : eval.c

Log message:
do the IFS_QUOTE dance right; this finally fixes ""$ <at> 

To generate a diff of this changeset, execute the following commands:
cvs -R rdiff -kk -upr1.169 -r1.170 src/bin/mksh/eval.c

Thorsten Glaser | 5 Jul 22:13 2015

CVS: herc.mirbsd.org: www

Commit ID:	10055998FE520FA3625
CVSROOT:	/cvs
Module name:	www
Changes by:	tg@...	2015/07/05 20:13:05 UTC

Modified files:
	users/tg       : WPtg.inc
	src            : mksh.hts

Log message:
sync clog

To generate a diff of this changeset, execute the following commands:
cvs -R rdiff -kk -upr1.240 -r1.241 www/users/tg/WPtg.inc
cvs -R rdiff -kk -upr1.586 -r1.587 www/src/mksh.hts

Thorsten Glaser | 5 Jul 21:53 2015

CVS: herc.mirbsd.org: src

Commit ID:	10055998B5B2E027FD0
CVSROOT:	/cvs
Module name:	src
Changes by:	tg@...	2015/07/05 19:53:47 UTC

Modified files:
	bin/mksh       : histrap.c lex.c

Log message:
make certain actions flush the history buffer

To generate a diff of this changeset, execute the following commands:
cvs -R rdiff -kk -upr1.147 -r1.148 src/bin/mksh/histrap.c
cvs -R rdiff -kk -upr1.203 -r1.204 src/bin/mksh/lex.c

Thorsten Glaser | 5 Jul 21:37 2015

CVS: herc.mirbsd.org: src

Commit ID:	1005599876B5247136B
CVSROOT:	/cvs
Module name:	src
Changes by:	tg@...	2015/07/05 19:37:20 UTC

Modified files:
	bin/mksh       : check.t edit.c funcs.c histrap.c lex.c main.c mksh.1
			 sh.h

Log message:
implement completely new multiline code by delaying history store

this commit is valgrind-tested

To generate a diff of this changeset, execute the following commands:
cvs -R rdiff -kk -upr1.697 -r1.698 src/bin/mksh/check.t
cvs -R rdiff -kk -upr1.286 -r1.287 src/bin/mksh/edit.c
cvs -R rdiff -kk -upr1.275 -r1.276 src/bin/mksh/funcs.c
cvs -R rdiff -kk -upr1.146 -r1.147 src/bin/mksh/histrap.c
cvs -R rdiff -kk -upr1.202 -r1.203 src/bin/mksh/lex.c
cvs -R rdiff -kk -upr1.293 -r1.294 src/bin/mksh/main.c
cvs -R rdiff -kk -upr1.371 -r1.372 src/bin/mksh/mksh.1
cvs -R rdiff -kk -upr1.732 -r1.733 src/bin/mksh/sh.h

Thorsten Glaser | 5 Jul 21:02 2015

CVS: herc.mirbsd.org: src

Commit ID:	10055997F3E3CFFC30D
CVSROOT:	/cvs
Module name:	src
Changes by:	tg@...	2015/07/05 19:02:17 UTC

Modified files:
	bin/mksh       : dot.mkshrc

Log message:
optimise by making use of commitid 1005529AD8D33CF99B9

To generate a diff of this changeset, execute the following commands:
cvs -R rdiff -kk -upr1.98 -r1.99 src/bin/mksh/dot.mkshrc

Thorsten Glaser | 5 Jul 19:50 2015

CVS: herc.mirbsd.org: src

Commit ID:	10055996E6F5E6AD356
CVSROOT:	/cvs
Module name:	src
Changes by:	tg@...	2015/07/05 17:50:42 UTC

Modified files:
	bin/mksh       : funcs.c mksh.1

Log message:
fix 'command -v' for "shell reserved words"
From: Martijn Dekker <martijn@...>

also adjust manpage accordingly

To generate a diff of this changeset, execute the following commands:
cvs -R rdiff -kk -upr1.274 -r1.275 src/bin/mksh/funcs.c
cvs -R rdiff -kk -upr1.370 -r1.371 src/bin/mksh/mksh.1

Thorsten Glaser | 5 Jul 19:04 2015

CVS: herc.mirbsd.org: src

Commit ID:	1005599636613028AB4
CVSROOT:	/cvs
Module name:	src
Changes by:	tg@...	2015/07/05 17:04:27 UTC

Modified files:
	bin/mksh       : check.t histrap.c

Log message:
now removes *all* trailing newlines (by reusing histsave result, saves code),
plus plugs an ancient memory leak (hist_execute afree’s its arg now);
also partial revert of commitid 78014291f06497b3 as COMPLEX_HISTORY handles
multi-line commands correctly now (r1.4, 2005-05-23)

To generate a diff of this changeset, execute the following commands:
cvs -R rdiff -kk -upr1.696 -r1.697 src/bin/mksh/check.t
cvs -R rdiff -kk -upr1.145 -r1.146 src/bin/mksh/histrap.c

Thorsten Glaser | 5 Jul 18:47 2015

CVS: herc.mirbsd.org: src

Commit ID:	10055995F8E525A617A
CVSROOT:	/cvs
Module name:	src
Changes by:	tg@...	2015/07/05 16:47:29 UTC

Modified files:
	bin/mksh       : histrap.c

Log message:
when storing commands with embedded newlines, don’t take those as end of string
(inspired fix from Debian #783978; bug in original pdksh COMPLEX_HISTORY code)

To generate a diff of this changeset, execute the following commands:
cvs -R rdiff -kk -upr1.143 -r1.144 src/bin/mksh/histrap.c

Thorsten Glaser | 5 Jul 18:48 2015

CVS: herc.mirbsd.org: src

Commit ID:	10055995FD3347F2D22
CVSROOT:	/cvs
Module name:	src
Changes by:	tg@...	2015/07/05 16:48:28 UTC

Modified files:
	bin/mksh       : histrap.c

Log message:
greatly simplify hist_execute (useless to cut a string in twain, then
restore the very same string), except now, the one trailing newline
is not removed (except in histsave)

To generate a diff of this changeset, execute the following commands:
cvs -R rdiff -kk -upr1.144 -r1.145 src/bin/mksh/histrap.c


Gmane