OSDN Git Service
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Jaap Jan Meijer [Wed, 2 Aug 2017 10:03:12 +0000 (12:03 +0200)]
Merge remote-tracking branch 'los/cm-14.1' into nougat-x86
Steve Kondik [Mon, 16 Nov 2015 22:33:37 +0000 (14:33 -0800)]
mksh: Fix default execshell issues
* We need to set these defines for the entire build.
Change-Id: Ie5a8429b8e55dd9003a9135cd1a0bdb113508fb9
Steve Kondik [Mon, 16 Nov 2015 22:33:24 +0000 (14:33 -0800)]
mksh: Use ro.cm.device to pick the hostname
Change-Id: Ib2b7fe4e089adc1d02d4ae7d410f929cd6de398a
Steve Kondik [Sun, 8 Nov 2015 06:40:34 +0000 (22:40 -0800)]
mksh: Build a static library
* For use by recovery
Change-Id: I25d820ca28c464ed4834dd78317ce137e2f0651e
Steve Kondik [Mon, 5 Jan 2015 01:58:24 +0000 (17:58 -0800)]
mksh: Set $TERM to "linux"
* We dropped this from the global environment in CM11, so readd
it here so we get all the ANSI hotness in the shell.
Change-Id: I9cb2faf415348717559f4f65bcfbe88d514ac9fe
Ricardo Cerqueira [Sun, 4 Jan 2015 02:31:49 +0000 (02:31 +0000)]
mkshrc: Only apply the resize to adb shells
This resize is messing with apps that do their own resizes, so apply
it only for ADB shells
Change-Id: I5b0e4bc2c2546809d829e84ac0291405c51da016
Tanguy Pruvot [Sun, 6 Jul 2014 17:05:19 +0000 (19:05 +0200)]
mkshrc: call resize command to init term dim.
With this simple command, nano and vim will use the
full size of the terminal in adb shell
Without, the default terminfo is used (80x24)
Change-Id: I4ee83dd3af623d07f51c7efe6b7d9def7853a045
Chih-Wei Huang [Wed, 1 Jul 2015 16:07:20 +0000 (00:07 +0800)]
mkshrc: add back the aliases I like
Elliott Hughes [Wed, 3 Feb 2016 01:14:56 +0000 (01:14 +0000)]
Merge "Upgrade to mksh R52b."
Elliott Hughes [Tue, 2 Feb 2016 23:26:47 +0000 (15:26 -0800)]
Upgrade to mksh R52b.
From the release notes:
R52b is a strongly recommended bugfix-only release:
[tg] Recognise ksh93 compiled scripts and LZIP compressed files as binary (i.e. to not run as mksh plaintext script)
[tg] Document that we will implement locale tracking later
[tg] Add EEXIST to failback strerror(3)
[jilles] Make set -C; :>foo race-free
[tg] Don’t use unset in portable build script
[tg] Plug warning on GNU/kFreeBSD, GNU/Hurd
[tg] Document read -a resets the integer base
[J�rg] Fix manpage: time is not a builtin but a reserved word
[J�rg, tg] Make exit (and return) eat -1
[tg] parse “$( (( … ) … ) … )” correctly (LP#
1532621), Jan Palus
[tg] reduce memory footprint by free(3)ing more aggressively
[tg] fix buffer overrun (LP#
1533394), bugreport by izabera
[tg] correctly handle nested ADELIM parsing (LP#
1453827), Teckids
[tg] permit “read -A/-a arr[idx]” as long as only one element is read; fix corruption of array indicēs with this construct (LP#
1533396), izabera
[tg] Sanitise OS-provided signal number in even more places
[tg] As requested by J�rg, be clear manpage advice is for mksh
[tg] Revert (as it was a regression) POSIX bugfix from R52/2005 related to accent gravis-style command substitution until POSIX decides either way
[tg] Handle export et al. after command (Austin#351)
[tg] Catch EPIPE in built-in cat and return as SIGPIPE (LP#
1532621)
[tg] Fix errno in print/echo builtin; optimise that and unbksl
[tg] Update documentation, point out POSIX violation (Austin#1015)
R52 is a strongly recommended bugfix release:
[_0bitcount] Move moving external link from mksh(1) to the #ksh channel homepage linked therein
[tg] Make setenv “set -u”-safe and fix when invoked with no args
[tg] Make “typeset -f” output reentrant if name is a reserved word
[oksh] Zero-pad seconds in “time” output to align columns
[tg] Check signals and errorlevels from OS to be within bounds
[komh, tg] Quote and document ‘;’ as PATH separator in some places
[oksh, tg] Simplify code to call afree() even if arg is NULL
[tg] Fix tree-printing and reentrancy of multiple here documents
[tg] Work around LP#
1030581 by permitting exactly one space after
[tg, oksh] Code quality work, cleanups
[tg] New code for here documents/strings with several bugfixes
[tg] Stop using issetugid(2) for ±p checks, wrong tool for the job
[tg] Reintroduce some -o posix changes lost in 2005, plus fixes
[tg] Make “source” into a built-in command
[tg] Drop “stop” alias, lksh(1) functionality to auto-unalias
[tg] Fix \u0000 ignored in $'…' and print
[tg] Improve portability of Build.sh
[Jilles Tjoelker] Improve portability of testsuite
[tg] Fix tilde expansion for some substitutions (izabera, Chet, Geoff)
[tg] Improve reparsing of ((…) |…) as ( (…) |…)
[Martijn Dekker] Fix test(1) not returning evaluation errors
[tg] Fix ${*:+x} constructs (carstenh)
[tg] Make (( … )) into a compound command (ormaaj)
[tg] Repair a few parameter substitution expansion mistakes
Change-Id: I3d875b5c648c60cc6203c964f11d8cbd42648d9c
Elliott Hughes [Mon, 16 Nov 2015 23:42:01 +0000 (23:42 +0000)]
Merge "adbd sets $TERM now."
Elliott Hughes [Mon, 16 Nov 2015 19:09:40 +0000 (11:09 -0800)]
adbd sets $TERM now.
Bug: http://b/
25601436
Change-Id: I532233a1cf349ac0117bdfb898ef050c42357178
Elliott Hughes [Mon, 2 Nov 2015 22:45:42 +0000 (22:45 +0000)]
Merge "adbd sets HOME/LOGNAME/SHELL/USER now."
Elliott Hughes [Mon, 2 Nov 2015 21:32:07 +0000 (13:32 -0800)]
adbd sets HOME/LOGNAME/SHELL/USER now.
We also don't need to export variables we inherited --- they're
automatically exported.
Bug: http://b/
19635681
Change-Id: Ie8e8480e7487ddc0fb9e984235b8b5ea0c587686
Elliott Hughes [Fri, 25 Sep 2015 15:15:02 +0000 (15:15 +0000)]
Merge "Remove hd."
Elliott Hughes [Fri, 25 Sep 2015 15:14:36 +0000 (15:14 +0000)]
Merge "Remove setenv."
Elliott Hughes [Fri, 25 Sep 2015 15:14:14 +0000 (15:14 +0000)]
Merge "Remove auto addition of ~/bin subdirectories to the path."
Elliott Hughes [Fri, 25 Sep 2015 00:22:42 +0000 (17:22 -0700)]
Remove hd.
hd was only usable from interactive shells. xxd is more functional and usable
from interactive and non-interactive shells.
Change-Id: I294acea221e20ca46b6bc7e8e34906bd5d1b6dad
Elliott Hughes [Fri, 25 Sep 2015 00:19:16 +0000 (17:19 -0700)]
Remove setenv.
No one is expecting the C shell any more.
Change-Id: Iff9422d254a51c988f2a6157379660b4ddaa617f
Elliott Hughes [Fri, 25 Sep 2015 00:18:28 +0000 (17:18 -0700)]
Remove auto addition of ~/bin subdirectories to the path.
Change-Id: Icde133fb21fa93ba3909b40da62da81654be1bab
Elliott Hughes [Fri, 17 Jul 2015 20:07:14 +0000 (20:07 +0000)]
Merge "Upgrade to mksh 51."
Elliott Hughes [Fri, 17 Jul 2015 18:39:41 +0000 (11:39 -0700)]
Upgrade to mksh 51.
Bug: http://b/
22413333
Change-Id: Id86d5bf463af540b84d03a7b8fe092d23702f414
Elliott Hughes [Wed, 22 Apr 2015 19:51:32 +0000 (19:51 +0000)]
Merge "Upgrade to mksh 50f."
Elliott Hughes [Tue, 21 Apr 2015 20:39:18 +0000 (13:39 -0700)]
Upgrade to mksh 50f.
Bug: http://b/
20101805
Change-Id: Ic311851b31217517f6c201b5ec68a0668577eddf
Elliott Hughes [Wed, 11 Mar 2015 17:29:33 +0000 (17:29 +0000)]
Merge "Apparently not all our toolchains have -fstack-protector-strong yet."
Elliott Hughes [Wed, 11 Mar 2015 17:27:23 +0000 (10:27 -0700)]
Apparently not all our toolchains have -fstack-protector-strong yet.
Change-Id: Ieaf13c9d402a6f1bc13c393de9aa965a4e7a845d
Elliott Hughes [Wed, 11 Mar 2015 16:58:17 +0000 (16:58 +0000)]
Merge "Upgrade to mksh 50e."
Elliott Hughes [Wed, 11 Mar 2015 05:22:24 +0000 (22:22 -0700)]
Upgrade to mksh 50e.
Change-Id: I341673d83c67f83761aa02c8372da6bbc419286f
Elliott Hughes [Tue, 10 Feb 2015 16:52:45 +0000 (16:52 +0000)]
am
948ca12d: Merge "Set to /data/local/tmp, and use `id -un` to get the user\'s name."
* commit '
948ca12d46512a832fe53ee24fd580e7addaf28d':
Set $TMPDIR to /data/local/tmp, and use `id -un` to get the user's name.
Elliott Hughes [Mon, 9 Feb 2015 22:02:37 +0000 (22:02 +0000)]
Merge "Set $TMPDIR to /data/local/tmp, and use `id -un` to get the user's name."
Elliott Hughes [Mon, 9 Feb 2015 20:25:41 +0000 (12:25 -0800)]
Set $TMPDIR to /data/local/tmp, and use `id -un` to get the user's name.
Needed to make various command-line tools work out of the box, since we
don't have /tmp, which is what they'd naturally fall back to.
Change-Id: I3091d5ec9235f977de4a698a34f1f147a69e8a33
Elliott Hughes [Fri, 12 Dec 2014 01:51:27 +0000 (01:51 +0000)]
am
508b5747: Merge "Default to xterm, remove some cruft."
* commit '
508b57470e9910e8c3be448ec4428ea02182c473':
Default to xterm, remove some cruft.
Elliott Hughes [Fri, 12 Dec 2014 01:21:59 +0000 (01:21 +0000)]
Merge "Default to xterm, remove some cruft."
Elliott Hughes [Fri, 12 Dec 2014 01:13:19 +0000 (17:13 -0800)]
Default to xterm, remove some cruft.
gtest won't color its output unless TERM is an xterm, and that seems as
reasonable a default as vt100. More reasonable, in fact. This only fixes
things for login shells, so we still need to fix adb to pass $TERM
through to make yabinc happy...
We can get a better more(1) from toybox, and the aliases seem inappropriate.
Change-Id: Id73035d69ab421b179b9beb575d4e1607fbcce62
Elliott Hughes [Sun, 26 Oct 2014 22:48:07 +0000 (22:48 +0000)]
Elliott Hughes [Sun, 26 Oct 2014 22:48:07 +0000 (22:48 +0000)]
Elliott Hughes [Sun, 26 Oct 2014 22:48:07 +0000 (22:48 +0000)]
am
a0a78c0a: am
049d9caa: Merge "Make mksh\'s mkmf.sh target-agnostic."
* commit '
a0a78c0a155ec954a8a67e155348e7424dd63237':
Elliott Hughes [Tue, 7 Oct 2014 23:23:18 +0000 (23:23 +0000)]
am
319a679f: Merge "Upgrade to mksh 50d."
* commit '
319a679f02fd6ac5f7cbde03c3e64935b2c9af82':
Upgrade to mksh 50d.
Elliott Hughes [Tue, 7 Oct 2014 23:20:53 +0000 (23:20 +0000)]
am
319a679f: Merge "Upgrade to mksh 50d."
* commit '
319a679f02fd6ac5f7cbde03c3e64935b2c9af82':
Upgrade to mksh 50d.
Elliott Hughes [Tue, 7 Oct 2014 22:41:30 +0000 (22:41 +0000)]
am
ae046317: Upgrade to mksh 50d.
* commit '
ae04631768fefc45c2d18865ec88872853421a52':
Upgrade to mksh 50d.
Elliott Hughes [Tue, 7 Oct 2014 22:04:14 +0000 (15:04 -0700)]
Upgrade to mksh 50d.
Bug:
17814343
(cherry picked from commit
f7f795644b6b1016c35b09d88c52f427473b3bae)
Change-Id: Ie8e4251d173b6e5aa7b0c4ef88a29bcccc23715a
Elliott Hughes [Tue, 7 Oct 2014 22:09:07 +0000 (22:09 +0000)]
Merge "Upgrade to mksh 50d."
Elliott Hughes [Tue, 7 Oct 2014 22:04:14 +0000 (15:04 -0700)]
Upgrade to mksh 50d.
Bug:
17814343
Change-Id: Ie56f48e041850aaf05f44d3640667848ec92f0b1
Elliott Hughes [Mon, 6 Oct 2014 23:58:53 +0000 (16:58 -0700)]
Merge remote-tracking branch 'goog/lmp-mr1-ub-dev' into cp
Elliott Hughes [Mon, 6 Oct 2014 22:42:04 +0000 (22:42 +0000)]
am
1f487419: Merge "Upgrade to mksh 50c."
* commit '
1f487419252b1b501e57d8944e854b1c349f92f7':
Upgrade to mksh 50c.
Elliott Hughes [Mon, 6 Oct 2014 22:40:59 +0000 (22:40 +0000)]
am
1f487419: Merge "Upgrade to mksh 50c."
* commit '
1f487419252b1b501e57d8944e854b1c349f92f7':
Upgrade to mksh 50c.
Elliott Hughes [Mon, 6 Oct 2014 18:30:44 +0000 (11:30 -0700)]
Upgrade to mksh 50c.
Bug:
17814343
(cherry picked from commit
56b517d46cdf4f6ccd6b62b207110e2afc3db30b)
Change-Id: Ib116fa73e720b9a918afa9538ff22b69345ba3bf
Elliott Hughes [Tue, 12 Aug 2014 22:39:09 +0000 (15:39 -0700)]
Make mksh's mkmf.sh target-agnostic.
This isn't much, but it's a step in the right direction. Really we should
probably generate a trivial Android.mk for building the .c files used by
the mksh equivalent of a configure script.
Bug:
17814343
(cherry picked from commit
0e7ec748185584bdc70285c9001d1c992b649127)
Change-Id: Ibce6616acfe560c4dfec1e27c51d45b9dce8456e
Elliott Hughes [Thu, 7 Aug 2014 19:59:26 +0000 (12:59 -0700)]
Upgrade to mksh 50.
Bug:
16569301
Bug:
17814343
(cherry picked from commit
737fdce098f804459a925438e48dd711c31bbc9e)
Change-Id: I7e8a142bec5f553f9e1a2568245582fe8fa14314
Elliott Hughes [Mon, 6 Oct 2014 20:41:49 +0000 (20:41 +0000)]
Merge "Upgrade to mksh 50c."
Elliott Hughes [Mon, 6 Oct 2014 18:30:44 +0000 (11:30 -0700)]
Upgrade to mksh 50c.
Bug:
17814343
Change-Id: I06cbd6e9ef127c6a654d201ebfb6005cbb2ed3b0
Elliott Hughes [Mon, 22 Sep 2014 17:31:57 +0000 (17:31 +0000)]
am
049d9caa: Merge "Make mksh\'s mkmf.sh target-agnostic."
* commit '
049d9caadea06e990fa2f890b4e611adfdf01055':
Make mksh's mkmf.sh target-agnostic.
Elliott Hughes [Mon, 22 Sep 2014 17:31:35 +0000 (17:31 +0000)]
am
049d9caa: Merge "Make mksh\'s mkmf.sh target-agnostic."
* commit '
049d9caadea06e990fa2f890b4e611adfdf01055':
Make mksh's mkmf.sh target-agnostic.
Elliott Hughes [Mon, 22 Sep 2014 17:08:25 +0000 (17:08 +0000)]
Merge "Make mksh's mkmf.sh target-agnostic."
Elliott Hughes [Tue, 12 Aug 2014 22:39:09 +0000 (15:39 -0700)]
Make mksh's mkmf.sh target-agnostic.
This isn't much, but it's a step in the right direction. Really we should
probably generate a trivial Android.mk for building the .c files used by
the mksh equivalent of a configure script.
Change-Id: I2a6d2e2b3a3ce03fea47a8ebccabd509989fbab9
Elliott Hughes [Fri, 8 Aug 2014 00:23:58 +0000 (00:23 +0000)]
am
d2b5c0ed: Merge "Upgrade to mksh 50."
* commit '
d2b5c0ede63db6e5390c680884ca65f612173da0':
Upgrade to mksh 50.
Elliott Hughes [Thu, 7 Aug 2014 23:32:09 +0000 (23:32 +0000)]
Merge "Upgrade to mksh 50."
Elliott Hughes [Thu, 7 Aug 2014 19:59:26 +0000 (12:59 -0700)]
Upgrade to mksh 50.
Bug:
16569301
Change-Id: I0560d52066198e25d3f0e5f3e4b0b7a5cd4f60b4
Christopher Ferris [Tue, 5 Aug 2014 21:43:18 +0000 (21:43 +0000)]
am
f9948769: Merge "cat builtin: permit interrupt during writing; more: avoid SIGPIPE"
* commit '
f9948769fe018acb71d1bed0a8db747d5397691f':
cat builtin: permit interrupt during writing; more: avoid SIGPIPE
Thorsten Glaser [Mon, 28 Jul 2014 13:18:35 +0000 (13:18 +0000)]
cat builtin: permit interrupt during writing; more: avoid SIGPIPE
(cherry picked from commit
353204547df46174e6b4273c43f56ed4dcb5794f)
Change-Id: I740d8da02577b8c7acc74c297f110a2a913ae2bf
Christopher Ferris [Tue, 5 Aug 2014 19:37:07 +0000 (19:37 +0000)]
Merge "cat builtin: permit interrupt during writing; more: avoid SIGPIPE"
Thorsten Glaser [Mon, 28 Jul 2014 13:18:35 +0000 (13:18 +0000)]
cat builtin: permit interrupt during writing; more: avoid SIGPIPE
Change-Id: I883dbb359e2580779d7d9fc8e982fbe2a9180668
Christopher Ferris [Wed, 18 Dec 2013 23:16:57 +0000 (23:16 +0000)]
Merge "Use uapi kernel headers."
Christopher Ferris [Wed, 18 Dec 2013 22:56:42 +0000 (14:56 -0800)]
Use uapi kernel headers.
Bug:
11559337
Change-Id: I05a34131ac533bf6d0eb300cf9c310cd7d70f037
Elliott Hughes [Thu, 7 Nov 2013 16:08:35 +0000 (16:08 +0000)]
Merge "Install mksh directly into /system/bin/sh."
Elliott Hughes [Tue, 5 Nov 2013 19:12:04 +0000 (11:12 -0800)]
Install mksh directly into /system/bin/sh.
No need for a symbolic link.
Change-Id: I1c71d52041213459c04c50ffd6392196d70e4d17
Nick Kralevich [Wed, 28 Aug 2013 19:19:18 +0000 (19:19 +0000)]
Merge "Update to mksh R48"
Thorsten Glaser [Thu, 25 Jul 2013 14:24:45 +0000 (14:24 +0000)]
Update to mksh R48
Change-Id: I4d1bef9bf8ddc7899cfb32a6f2fa9e6f632bc53f
Nick Kralevich [Wed, 20 Feb 2013 20:08:35 +0000 (20:08 +0000)]
Merge "mksh: use /data/local instead of /data/local/tmp"
Nick Kralevich [Wed, 20 Feb 2013 19:20:51 +0000 (11:20 -0800)]
mksh: use /data/local instead of /data/local/tmp
/data/local/tmp is writable by the shell user and is not
sticky (S_IXVTX). /data/local is only writable by root
(as a result, the sticky bit doesn't matter).
Change-Id: I7ea121208846c2cffe97f6316272c526b47a1813
Nick Kralevich [Tue, 19 Feb 2013 21:20:34 +0000 (21:20 +0000)]
Merge "Update mksh to R43 (formal release, from tarball)"
Thorsten Glaser [Mon, 18 Feb 2013 23:02:51 +0000 (23:02 +0000)]
Update mksh to R43 (formal release, from tarball)
The files in src/ are just the unmodified mksh release .tgz
and is Not a Contribution to Android, it’s the upstream code
project. ChangeLog: https://www.mirbsd.org/mksh.htm#clog
Changes, other than upstream mksh code:
• update Copyright years
• sync with moving to a different AOSP project and other AOSP changes
• mkmf.sh: add test compilation mode
• be conservative in filedescriptor usage
• don’t compile the $MirOS$ RCS IDs into the binary to save space
• enable UTF-8 mode, to match reality
• help memory leak debugging by adding -DDEBUG_LEAKS
• update rest of mkmf.sh to work with updated AOSP and mksh
• use ro.product.device property as default hostname in mkshrc
(originally submitted by John Michelau <john.michelau@motorola.com>)
• do not export PS1 in mkshrc (cross-shell developers agreed on this)
• add “more” function to mkshrc to get a simplistic pager
• add “hd” and “setenv” functions to mkshrc for better UX
• mention Launchpad as upstream bugtracker as comment in mkshrc
• change TMPDIR to /data/local/tmp for now, as /sqlite_stmt_journals is gone
(although this is still no full replacement, it’s better than before)
• address the segfaults seen by DONG-DONG YANG
Change-Id: I2d4d175bc5163b3d6f5098024f98f316fe812e55
Elliott Hughes [Thu, 3 May 2012 23:38:30 +0000 (16:38 -0700)]
Track libnativehelper move for PDK.
Bug:
6369821
Change-Id: I287c08d562d3aab14adf34a614ef752ecc21c064
Geremy Condra [Thu, 13 Oct 2011 01:17:24 +0000 (18:17 -0700)]
Updated mksh to ToT as of 12 October 2011.
This includes several security fixes and brings us in
line with upstream, who has included fixes for a
number of issues originally reported by the Android
team.
Change-Id: I1e0f3adf292b86fa7679b3364a774e5b6004beb8
Jean-Baptiste Queru [Thu, 16 Jun 2011 17:05:28 +0000 (10:05 -0700)]
Move mksh to a separate project.
This was originally in system/core/mksh
commit
ba2627c6cdb3aaa40aebd362170c382b55b7b511
Author: Thorsten Glaser <tg@mirbsd.org>
Date: Tue Aug 24 18:21:37 2010 +0200
Add mksh from CVS 2010/08/24 as system/core/mksh module
Both shells (ash from system/core/sh, and mksh) are built by
default but only the one where $(TARGET_SHELL) is set to is
actually installed (the shell and the mkshrc configuration
file are tagged shell_mksh for this to work).
commit
f41986bbc79055a4feed7266cac5c1b540296daf
Author: Jeff Hamilton <jham@android.com>
Date: Fri Sep 10 10:46:06 2010 -0500
Don't alias 'stop' to 'kill -STOP'
Android has already has a stop command used
to stop the main runtime and the alias
interferes with testing tools that expect
stop to kill the runtime.
Change-Id: I5ddf28dbd0221148d3b8f55eaf4f1e7d046c9288
Anatol Pomazau [Fri, 10 Jun 2011 15:15:48 +0000 (08:15 -0700)]
Initial empty repository