View Single Post
Old 12-17-2012, 11:04 AM   #1
silverzhao
Enthusiast
silverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplane
 
silverzhao's Avatar
 
Posts: 28
Karma: 55702
Join Date: Sep 2012
Device: Kindle Touch
An available bash 4.2 for KT

The default bash on KT is a symbolic link to bushbox, and it's not very comfortable to use, such as no readline, no reverse-search, etc.

So I've compiled one for KT and it works well. If you are interested, maybe you can have a try.

--EDIT--
Here is the source: http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz
and you may need the patch from here.

Patch:
Spoiler:

Code:
$ cat m.patch
--- execute_cmd.c.orig	2012-12-18 01:17:36.461797844 +0800
+++ execute_cmd.c	2012-12-18 01:19:37.217827181 +0800
@@ -2202,7 +2202,11 @@
   /* If the `lastpipe' option is set with shopt, and job control is not
      enabled, execute the last element of non-async pipelines in the
      current shell environment. */
+#if defined (JOB_CONTROL)
   if (lastpipe_opt && job_control == 0 && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0)
+#else
+  if (lastpipe_opt && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0)
+#endif /* JOB_CONTROL */
     {
       lstdin = move_to_high_fd (0, 0, 255);
       if (lstdin > 0)


I compiled it with:
Code:
$ patch < m.patch
$ CC=arm-unknown-linux-gnueabi-gcc ./configure --host=arm-linux --target=arm-linux --enable-history --enable-readline --without-bash-malloc
Attached Files
File Type: zip bash.zip (344.1 KB, 367 views)

Last edited by silverzhao; 12-17-2012 at 12:30 PM.
silverzhao is offline   Reply With Quote