Commit graph

281 commits

Author SHA1 Message Date
Elliott Hughes
f215cbb9af am 1f487419: Merge "Upgrade to mksh 50c."
* commit '1f487419252b1b501e57d8944e854b1c349f92f7':
  Upgrade to mksh 50c.
2014-10-06 22:40:59 +00:00
Elliott Hughes
b4542e99ca Upgrade to mksh 50c.
Bug: 17814343

(cherry picked from commit 56b517d46c)

Change-Id: Ib116fa73e720b9a918afa9538ff22b69345ba3bf
2014-10-06 14:01:54 -07:00
Elliott Hughes
1bd2f37e63 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 0e7ec74818)

Change-Id: Ibce6616acfe560c4dfec1e27c51d45b9dce8456e
2014-10-06 13:55:38 -07:00
Elliott Hughes
427d76ccc4 Upgrade to mksh 50.
Bug: 16569301
Bug: 17814343

(cherry picked from commit 737fdce098)

Change-Id: I7e8a142bec5f553f9e1a2568245582fe8fa14314
2014-10-06 13:44:21 -07:00
Elliott Hughes
1f48741925 Merge "Upgrade to mksh 50c." 2014-10-06 20:41:49 +00:00
Elliott Hughes
56b517d46c Upgrade to mksh 50c.
Bug: 17814343
Change-Id: I06cbd6e9ef127c6a654d201ebfb6005cbb2ed3b0
2014-10-06 11:30:44 -07:00
Elliott Hughes
a0a78c0a15 am 049d9caa: Merge "Make mksh\'s mkmf.sh target-agnostic."
* commit '049d9caadea06e990fa2f890b4e611adfdf01055':
  Make mksh's mkmf.sh target-agnostic.
2014-09-22 17:31:57 +00:00
Elliott Hughes
fcaa534750 am 049d9caa: Merge "Make mksh\'s mkmf.sh target-agnostic."
* commit '049d9caadea06e990fa2f890b4e611adfdf01055':
  Make mksh's mkmf.sh target-agnostic.
2014-09-22 17:31:35 +00:00
Elliott Hughes
049d9caade Merge "Make mksh's mkmf.sh target-agnostic." 2014-09-22 17:08:25 +00:00
Elliott Hughes
0e7ec74818 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
2014-08-12 15:39:09 -07:00
Elliott Hughes
95686271bf am d2b5c0ed: Merge "Upgrade to mksh 50."
* commit 'd2b5c0ede63db6e5390c680884ca65f612173da0':
  Upgrade to mksh 50.
2014-08-08 00:23:58 +00:00
Elliott Hughes
d2b5c0ede6 Merge "Upgrade to mksh 50." 2014-08-06 23:49:29 +00:00
Elliott Hughes
737fdce098 Upgrade to mksh 50.
Bug: 16569301
Change-Id: I0560d52066198e25d3f0e5f3e4b0b7a5cd4f60b4
2014-08-07 16:05:43 -07:00
Christopher Ferris
85df3b5f32 am f9948769: Merge "cat builtin: permit interrupt during writing; more: avoid SIGPIPE"
* commit 'f9948769fe018acb71d1bed0a8db747d5397691f':
  cat builtin: permit interrupt during writing; more: avoid SIGPIPE
2014-08-05 21:43:18 +00:00
Thorsten Glaser
c6476acc33 cat builtin: permit interrupt during writing; more: avoid SIGPIPE
(cherry picked from commit 353204547d)

Change-Id: I740d8da02577b8c7acc74c297f110a2a913ae2bf
2014-08-05 12:47:21 -07:00
Christopher Ferris
f9948769fe Merge "cat builtin: permit interrupt during writing; more: avoid SIGPIPE" 2014-08-05 17:41:26 +00:00
Thorsten Glaser
353204547d cat builtin: permit interrupt during writing; more: avoid SIGPIPE
Change-Id: I883dbb359e2580779d7d9fc8e982fbe2a9180668
2014-07-28 21:39:56 +00:00
Christopher Ferris
2a54bce0ae Merge "Use uapi kernel headers." 2013-12-18 23:16:58 +00:00
Christopher Ferris
98a3aa64de Use uapi kernel headers.
Bug: 11559337
Change-Id: I05a34131ac533bf6d0eb300cf9c310cd7d70f037
2013-12-18 14:56:42 -08:00
Elliott Hughes
612ecbc558 Merge "Install mksh directly into /system/bin/sh." 2013-11-07 16:08:35 +00:00
Elliott Hughes
301fc812fe Install mksh directly into /system/bin/sh.
No need for a symbolic link.

Change-Id: I1c71d52041213459c04c50ffd6392196d70e4d17
2013-11-05 11:12:04 -08:00
Nick Kralevich
eb5e7e17f7 Merge "Update to mksh R48" 2013-08-28 19:19:18 +00:00
Thorsten Glaser
811a575c0f Update to mksh R48
Change-Id: I4d1bef9bf8ddc7899cfb32a6f2fa9e6f632bc53f
2013-08-14 21:33:39 +00:00
Nick Kralevich
f8c396c4d4 Merge "mksh: use /data/local instead of /data/local/tmp" 2013-02-20 20:08:35 +00:00
Nick Kralevich
fd187c6578 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
2013-02-20 11:47:46 -08:00
Nick Kralevich
d2cea5b503 Merge "Update mksh to R43 (formal release, from tarball)" 2013-02-19 21:20:34 +00:00
Thorsten Glaser
c2dc5def5e 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
2013-02-19 19:58:27 +00:00
Elliott Hughes
93bd42c789 Track libnativehelper move for PDK.
Bug: 6369821
Change-Id: I287c08d562d3aab14adf34a614ef752ecc21c064
2012-05-03 16:38:30 -07:00
Geremy Condra
03ebf06f4e 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
2011-10-12 18:17:24 -07:00
Jean-Baptiste Queru
5155f1c743 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
2011-06-16 10:05:28 -07:00
Anatol Pomazau
38fa6a9a7b Initial empty repository 2011-06-10 08:15:48 -07:00