Commit graph

281 commits

Author SHA1 Message Date
Yifan Hong
665e7d3d5f Merge "Introduce sh.vendor_ramdisk." am: 3139f96069 am: c7cff8ed5d am: 7b8ded2414 am: 1ec623f5f9
Original change: https://android-review.googlesource.com/c/platform/external/mksh/+/1469768

Change-Id: Ibd2963d135cb27babe84ad85887c8af7eb86e509
2020-10-29 19:15:51 +00:00
Yifan Hong
1ec623f5f9 Merge "Introduce sh.vendor_ramdisk." am: 3139f96069 am: c7cff8ed5d am: 7b8ded2414
Original change: https://android-review.googlesource.com/c/platform/external/mksh/+/1469768

Change-Id: Ib433bf2ab39b06d52c72a90b32bd13ea8db67322
2020-10-29 18:56:14 +00:00
Yifan Hong
7b8ded2414 Merge "Introduce sh.vendor_ramdisk." am: 3139f96069 am: c7cff8ed5d
Original change: https://android-review.googlesource.com/c/platform/external/mksh/+/1469768

Change-Id: I1b095931dfb2f17bd72e75b3580f9f38338bc7f6
2020-10-29 18:21:03 +00:00
Yifan Hong
c7cff8ed5d Merge "Introduce sh.vendor_ramdisk." am: 3139f96069
Original change: https://android-review.googlesource.com/c/platform/external/mksh/+/1469768

Change-Id: I188b24afecab51d8081afd0bc46e11c684075655
2020-10-29 17:49:00 +00:00
Yifan Hong
3139f96069 Merge "Introduce sh.vendor_ramdisk." 2020-10-29 17:17:29 +00:00
Yifan Hong
c6ad685a7b Introduce sh.vendor_ramdisk.
Test: pass
Bug: 156098440
Change-Id: Ie267b05c250a5f1831ae6d25aad9ea7bdc66ab2a
2020-10-28 10:25:30 -07:00
Xin Li
b286b022bc [automerger skipped] Skip ab/6749736 in stage. am: 1f4114a71c -s ours am: 06e8f636b2 -s ours am: f642d23313 -s ours
am skip reason: Change-Id Iafbad9ddcbd48a9ef9027de70ccd2fc0ab0679f8 with SHA-1 fcdb2d6958 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/external/mksh/+/12796984

Change-Id: I0627251ffa066a91a1d733bf4d786c672efc9051
2020-10-09 06:09:57 +00:00
Xin Li
f642d23313 [automerger skipped] Skip ab/6749736 in stage. am: 1f4114a71c -s ours am: 06e8f636b2 -s ours
am skip reason: Change-Id Iafbad9ddcbd48a9ef9027de70ccd2fc0ab0679f8 with SHA-1 fcdb2d6958 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/external/mksh/+/12796984

Change-Id: Ib94ed3f2cb3f191f0fb99b84612e46a83dd1f29c
2020-10-09 04:54:26 +00:00
Xin Li
06e8f636b2 [automerger skipped] Skip ab/6749736 in stage. am: 1f4114a71c -s ours
am skip reason: Change-Id Iafbad9ddcbd48a9ef9027de70ccd2fc0ab0679f8 with SHA-1 fcdb2d6958 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/external/mksh/+/12796984

Change-Id: I7324e027612fadce54abe08d3a5ba08e15727f2d
2020-10-09 04:23:52 +00:00
Xin Li
1f4114a71c Skip ab/6749736 in stage.
Merged-In: Iafbad9ddcbd48a9ef9027de70ccd2fc0ab0679f8
Change-Id: I568a9eb47e99954a691a0986a3515dabc26459fa
2020-10-08 17:21:20 -07:00
Treehugger Robot
9328980cc2 Merge "Update the NOTICE file." am: 4d0a1a5064 am: 0734bcbddc am: 9b2839eb3a am: 5985b7f2de am: 8cd855b209
Original change: https://android-review.googlesource.com/c/platform/external/mksh/+/1416651

Change-Id: Idda28b410ccdb5d2807a8171a3554cc4d23d9472
2020-09-01 19:46:15 +00:00
Treehugger Robot
8cd855b209 Merge "Update the NOTICE file." am: 4d0a1a5064 am: 0734bcbddc am: 9b2839eb3a am: 5985b7f2de
Original change: https://android-review.googlesource.com/c/platform/external/mksh/+/1416651

Change-Id: If380fded0213e932ffd6a968396caca2109a8fb7
2020-09-01 19:02:11 +00:00
Treehugger Robot
5985b7f2de Merge "Update the NOTICE file." am: 4d0a1a5064 am: 0734bcbddc am: 9b2839eb3a
Original change: https://android-review.googlesource.com/c/platform/external/mksh/+/1416651

Change-Id: Ib3b7bebc27ed252b2b58d95c660e3154353f8d7e
2020-09-01 18:46:42 +00:00
Treehugger Robot
9b2839eb3a Merge "Update the NOTICE file." am: 4d0a1a5064 am: 0734bcbddc
Original change: https://android-review.googlesource.com/c/platform/external/mksh/+/1416651

Change-Id: I1ae82d07e90bc7984aae977d732de7cdc7fb83f7
2020-09-01 18:30:27 +00:00
Treehugger Robot
0734bcbddc Merge "Update the NOTICE file." am: 4d0a1a5064
Original change: https://android-review.googlesource.com/c/platform/external/mksh/+/1416651

Change-Id: I4b8cab145ad98d12eac8fb79cf636b899e6fd476
2020-09-01 18:12:05 +00:00
Treehugger Robot
4d0a1a5064 Merge "Update the NOTICE file." 2020-09-01 18:02:40 +00:00
Elliott Hughes
05e8e02c44 Update the NOTICE file.
Copied from <http://www.mirbsd.org/TaC-mksh.txt>.

Bug: https://issuetracker.google.com/167231622
Test: treehugger
Change-Id: Id8e77179ffeeb57662659220b90a8617170c8009
2020-09-01 16:28:02 +00:00
Treehugger Robot
ccefb670c9 Merge "Upgrade to mksh R59b." am: 4adbc81376 am: efb93a535d am: d04311005c am: fcdb2d6958 am: 76e4243dd6
Change-Id: I8f7ced0b92d1fd872df18fde03ac3b85b138185e
2020-05-21 22:30:08 +00:00
Treehugger Robot
76e4243dd6 Merge "Upgrade to mksh R59b." am: 4adbc81376 am: efb93a535d am: d04311005c am: fcdb2d6958
Change-Id: I9882cfd38faf9b21d11c3f89c102bfb3cf72a4d8
2020-05-21 22:16:10 +00:00
Treehugger Robot
fcdb2d6958 Merge "Upgrade to mksh R59b." am: 4adbc81376 am: efb93a535d am: d04311005c
Change-Id: Iafbad9ddcbd48a9ef9027de70ccd2fc0ab0679f8
2020-05-21 21:59:35 +00:00
Treehugger Robot
d04311005c Merge "Upgrade to mksh R59b." am: 4adbc81376 am: efb93a535d
Change-Id: I12d26d6a8756b35fd6ad111a4631c7476853a356
2020-05-21 21:44:41 +00:00
Treehugger Robot
efb93a535d Merge "Upgrade to mksh R59b." am: 4adbc81376
Change-Id: Iac37178ba86b7e406600c3bcf79f33149c5e746e
2020-05-21 21:29:49 +00:00
Treehugger Robot
4adbc81376 Merge "Upgrade to mksh R59b." 2020-05-21 21:03:28 +00:00
Elliott Hughes
a5d35a625a Upgrade to mksh R59b.
R59b is a must-have bugfix upgrade for R59 (not R58):

[tg] Handle other tmux $TERM types, pointed out by multi via IRC
[tg] Fix typo in FAQ
[tg] y='a\*b'; [[ $x = $y ]] regression (Martijn Dekker) fix
[l0kod] Defuse CLIP OS O_MAYEXEC support (cf. LWN)
[tg] Make set +o output a command to restore the currently set and
(new!) cleared options, keep a reset state per session (experimental)
[tg] Correct documentation and code regarding to argv[0] parsing: first
‘-’ for login shells, then ‘r’ case-insensitively for restricted shell,
then “sh”*, again case-insensitively, for BINSH_* modes; add tests
[tg] On OS/2, allow case-insensitive name for direct builtin call
[tg] Always skip startup files if direct builtin call
[tg] Avoid some sometimes-redundant startup codepaths

Test: treehugger
Change-Id: I7b0a1d37b4d3fdf1f78569458769e89dca755fcb
2020-05-20 17:17:13 -07:00
Treehugger Robot
89154bf75d Merge "Upgrade to mksh R59." am: f54e593e39 am: ce5d2ec295 am: fbd053ec48 am: 959e0c2663 am: 13fd1d1f9c
Change-Id: I56f78e3fc556c59e547315bcce3f5376e244c3a9
2020-05-20 00:33:59 +00:00
Treehugger Robot
13fd1d1f9c Merge "Upgrade to mksh R59." am: f54e593e39 am: ce5d2ec295 am: fbd053ec48 am: 959e0c2663
Change-Id: Ib036615803f56743489fdc1445b8ab5449968fa7
2020-05-20 00:17:25 +00:00
Treehugger Robot
959e0c2663 Merge "Upgrade to mksh R59." am: f54e593e39 am: ce5d2ec295 am: fbd053ec48
Change-Id: I85c6edfcc6174ceff7170110f901895c020e35db
2020-05-19 23:58:07 +00:00
Treehugger Robot
fbd053ec48 Merge "Upgrade to mksh R59." am: f54e593e39 am: ce5d2ec295
Change-Id: I4a48638b96e9439d252730d4ddf61f4593da6ed8
2020-05-19 23:42:13 +00:00
Treehugger Robot
ce5d2ec295 Merge "Upgrade to mksh R59." am: f54e593e39
Change-Id: Ideaba8c15eca297b3d3027498e7c7d52cc4a998d
2020-05-19 23:25:19 +00:00
Treehugger Robot
f54e593e39 Merge "Upgrade to mksh R59." 2020-05-19 23:04:23 +00:00
Elliott Hughes
2e46594a0b Upgrade to mksh R59.
R59 has some major fixes, also introducing breaking changes:

[tg] Repair out-of-tree builds (noticed by rsc)
[tg] Work around a glibc on Hurd issue in testsuite
[komh] OS/2 filesystem mtime granularity is two seconds (as in FAT)
[tg] Replace while with goto: Coverity was confused
[tg] Fix invocation of some builtins when external utility absent
[komh] Improve automatic executable suffix for test builtin
[tg] Style code, refactor, clean up, optimise
[tg] Use cached egid in test builtin
[tg] Make bind builtin output reentry-safe; safety fixes
[tg] If basename(argv[0]) after leading dash removal begins with an ‘r’
enable restricted shell flag; reported by pmjdebruijn via IRC
[tg] Fix code example in manpage for how tab completion escapes
[tg] Match full extglob pattern RHS of [[ string comparison like ksh93
[tg] Implement which with -a in dot.mkshrc
[tg] Remove global builtin (use typeset -g)
[tg] alias, command, whence: Print alias names quoted
[tg] Implement a new quote-region (Esc+Q) editing command
[tg] Document all built-in aliases (requested by msiism via IRC) and
those aliases and functions shipped in dot.mkshrc; completely overhaul
builtin and reserved word documentation, for consistency
[tg] The manual page now features properly spaced em dashes ☻
[tg] Document that test x = y doesn’t extglob, only [[ x = y ]] does

R58 contains a lot of fixes and improvements:

[lintian] hyphen-used-as-minus-sign (on jessie, not later, ‽‽‽)
[tg] Fix system info gcc dump{machine,version} shell escaping level
[tg] Document KSH_VERSIONNAME_VENDOR_EXT in Build.sh
[tg] Be more explicit about the LTO bug exposed by check.t
[Todd C. Miller] Add -x (file locks) and AIX-specific -r ulimits
[tg] Handle Midipix as test environment and fix some warnings
[tg] Fix some Build.sh issues as Mirtoconf is now used by MirCPIO and
MagicPoint
[komh] Improve CRLF to LF conversion
[komh] Ensure ECHO mode is enabled at startup so read has local echo
[komh] Let check.pl retain the PERLIO env variable
[komh] Unbreak nounset-1 test on systems with drive letters
[komh, tg] Make ulimit-3 test work without |& (that is, incomplete
ports, i.e. those with -DMKSH_NOPROSPECTOFWORK)
[tg] Disable xxx-stat-1 test for now, fails when run as root
[tg] Drop Build.sh flags -c combine, -c lto
[Martijn Dekker] Exit 126 on execve(2) failure, not 1 (e.g. E2BIG)
[tg] Behave set and export/readonly-on-read-only-variables when run with
command and command dot, bugreports by Martijn Dekker
[tg] dot.mkshrc: simplify; enhance (un)setting locale example
[tg, selk] Catch build errors earlier
[tg] Add -fno-lto (if GCC is detected) to CFLAGS and LDFLAGS
[tg] Limit HISTSIZE to 65535, as long pre-announced
[tg] Unbreak testsuite selftest-tty-absent for lksh
[tg] Begin work on support for neatcc (needs neatcc to evolve first)
[tg] Fix possibly not enough aligned access in struct job
[tg] Support going full setugid by running “set -p” once interactive
[tg] Document another (arcane, almost nowhere needed) definition
[tg] Improve code legibility and testsuite reliability and maintenance
[tg] Speed up trivial += cases (LP#1855167)
[tg] Some further code and memory optimisation and test coverage
[tg] Document that += is always string append (LP#1857702)
[tg] Fix “set -e appears active within eval but isn’t” reported by
Martijn Dekker and another bug related to using set ±e inside eval
[tg] Handle parameter assignment in front of invocations of POSIX-style
functions like ksh-style ones and external utilities; cf. Debian #935115
[tg] Fix bad memory access for invalid syntax (LP#1857828, LP#1857826)
[Brian Callahan] Update MALLOC_OPTIONS-using testcase for newer OpenBSD
[tg] Support lacc as compiler (just detecting, no change), thanks Brian
[tg] Share __IDSTRING with jupp
[tg] Update string comparison/pattern documentation
[tg, veedeeh] Document vi command line editing mode state better
[tg] Add FAQ2HTML.sh to convert mksh.faq to local valid XHTML+CSS
[tg] Correct backslash expansion documentation; caveat re. 16-bit UCS
[tg] Fix extra empty field on IFS-NWS trim expansion (Martijn Dekker)
[tg] Improve code performance, quality, robustness and correctness
[tg] Allow ${x:n} where n is an identifier (veedeeh)
[tg] Permit ‘+’ in alias names, but not leading (Aleksey Cheusov)
[tg] Fix here strings for $@ (LP#1857195), reported by jvdh
[multiplexd] Add vi mode PgDn, similar to PgUp doing history search
[tg] Build.sh fixup unreliable test -n/-z
[multiplexd] Correct documentation of vi mode @c
[tg] Update to UCD 13.0.0
[tg] Use nanoseconds in test -nt / -ot (LP#1855325)

Test: treehugger
Change-Id: Ic466c45d15498770d4852fabdab63cb98bef870a
2020-05-15 16:19:16 -07:00
Bob Badour
606e3c7463 Merge "Add METADATA to mksh: MIT=NOTICE" am: 19d12c0d97 am: 6f444b4cb6 am: e7f792145a am: 898c8bc7c9 am: 9554100255
Change-Id: I8a95602c4ce8ee58e8c55eed540af0856ba7aa39
2020-04-29 00:45:10 +00:00
Bob Badour
9554100255 Merge "Add METADATA to mksh: MIT=NOTICE" am: 19d12c0d97 am: 6f444b4cb6 am: e7f792145a am: 898c8bc7c9
Change-Id: I8c1ba59c255a9ec9e5425048e83d7d8b385834fc
2020-04-29 00:31:05 +00:00
Bob Badour
898c8bc7c9 Merge "Add METADATA to mksh: MIT=NOTICE" am: 19d12c0d97 am: 6f444b4cb6 am: e7f792145a
Change-Id: Iea003533c0e86978f43773b1630ffb11d3ba9a6d
2020-04-29 00:16:52 +00:00
Bob Badour
e7f792145a Merge "Add METADATA to mksh: MIT=NOTICE" am: 19d12c0d97 am: 6f444b4cb6
Change-Id: I24d5789d5b7e9a24660b00b66266f6bd77c1fe65
2020-04-29 00:03:28 +00:00
Bob Badour
6f444b4cb6 Merge "Add METADATA to mksh: MIT=NOTICE" am: 19d12c0d97
Change-Id: Ib847344e85e7807ec9f19b0fac3ddeb13d5c6093
2020-04-28 23:47:53 +00:00
Bob Badour
19d12c0d97 Merge "Add METADATA to mksh: MIT=NOTICE" 2020-04-28 23:32:42 +00:00
Bob Badour
c2c392e3f4 Add METADATA to mksh: MIT=NOTICE
Bug: 68860345
Bug: 69058154
Bug: 151953481

Test: no code changes
Change-Id: Icc769c88fc0b265cbcdf226cca654cc5c3432d5d
2020-04-28 08:35:26 -07:00
Xin Li
2dbe544261 [automerger skipped] DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master am: 596fee7ca5
am: 63d55d82e7 -s ours
am skip reason: subject contains skip directive

Change-Id: I414c226e399c98a87c0cfcab560148b9c5db796b
2019-10-30 14:21:50 -07:00
Xin Li
63d55d82e7 DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
am: 596fee7ca5

Change-Id: If388187c2739067d4d6eaaaaf64a572fa7b28878
2019-10-30 13:57:57 -07:00
Xin Li
596fee7ca5 DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
Bug: 142003500
Change-Id: I0c5eaff91ca6f75c970aa5d3ec71dce659b12b6a
2019-10-30 11:48:15 -07:00
Elliott Hughes
2e70689147 Merge "mksh: stop loading libc++ and libm." am: 701334bc0c am: afaa7f8be8 am: 5433273b97
am: 343d0fc340

Change-Id: I448aeae030345028cbe87163fe8ece7f191d9f2a
2019-09-24 12:52:24 -07:00
Elliott Hughes
343d0fc340 Merge "mksh: stop loading libc++ and libm." am: 701334bc0c am: afaa7f8be8
am: 5433273b97

Change-Id: I9f11beef858e1193ecfabe35a4499fdaf6b190db
2019-09-24 12:45:42 -07:00
Elliott Hughes
5433273b97 Merge "mksh: stop loading libc++ and libm." am: 701334bc0c
am: afaa7f8be8

Change-Id: I06d5766ae10e2c6abe1e90ecbae1e9ff2dc800fb
2019-09-24 12:39:17 -07:00
Elliott Hughes
afaa7f8be8 Merge "mksh: stop loading libc++ and libm."
am: 701334bc0c

Change-Id: I05683760b3cfe45942539a06369273fa9918efbb
2019-09-24 12:32:38 -07:00
Elliott Hughes
701334bc0c Merge "mksh: stop loading libc++ and libm." 2019-09-24 19:09:34 +00:00
Elliott Hughes
98df42c3cd mksh: stop loading libc++ and libm.
The dynamic linker unconditionally adds libdl, so this isn't quite down
to just libc, but it's as close as I can get from here.

Unfortunately my timings are in the noise so I can't prove that this
makes any difference in practice, but it can't *hurt*, so....

Test: ldd `which sh`
Change-Id: I9d864120e38d55c85c655ddeaba997cb20e42c6e
2019-09-23 13:29:51 -07:00
Bill Rassieur
3488243a82 Merge master@5428150 into git_qt-dev. am: 146c8d0123
am: 9f3a975a6c

Change-Id: Ifc2391e84ca9c64569376e6a18bd5e45a475229b
2019-04-03 17:39:09 -07:00
Bill Rassieur
046a3423fd Merge master@5428150 into git_qt-dev-plus-aosp.
am: 8cd2fbe92f

Change-Id: I7e8f4a6a75f26ab92aac87738fd1b33c90718d44
2019-04-03 16:30:35 -07:00
Bill Rassieur
9f3a975a6c Merge master@5428150 into git_qt-dev.
am: 146c8d0123

Change-Id: Ic5c34305f70e57e2b1f4ffde7aac9a603b650b61
2019-04-03 08:47:03 -07:00