aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-05-21 10:19:48 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-05-21 10:19:48 +0000
commite120a8687e78e754338b2f3b633b6a65b2cc71a2 (patch)
tree991012d53e9e2931ef00d893ef69199acdfbbe96
parent6c661515efe11d26e4cb86cc04e8a7b85238c702 (diff)
downloadbusybox-w32-e120a8687e78e754338b2f3b633b6a65b2cc71a2.tar.gz
busybox-w32-e120a8687e78e754338b2f3b633b6a65b2cc71a2.tar.bz2
busybox-w32-e120a8687e78e754338b2f3b633b6a65b2cc71a2.zip
shells: update README and testsuite. environment memory leak
needs to be fixed - and documented! git-svn-id: svn://busybox.net/trunk/busybox@18662 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--shell/README16
-rw-r--r--shell/hush_test/hush-parsing/process_subst.right1
-rwxr-xr-xshell/hush_test/hush-parsing/process_subst.tests1
3 files changed, 17 insertions, 1 deletions
diff --git a/shell/README b/shell/README
index d492671fb..919cb9fef 100644
--- a/shell/README
+++ b/shell/README
@@ -1,6 +1,20 @@
1Various bits of what is known about busybox shells, in no particular order. 1Various bits of what is known about busybox shells, in no particular order.
2 2
32006-05-06 32007-05-21
4hush: environment cannot be handled by libc routines as they are leaky
5(by API design and thus unfixable): hush will leak memory in this script,
6bash does not:
7pid=$$
8while true; do
9 unset t;
10 t=111111111111111111111111111111111111111111111111111111111111111111111111
11 export t
12 ps -o vsz,pid,comm | grep " $pid "
13done
14The fix is to not use setenv/putenv/unsetenv but manipulate env ourself. TODO.
15hush: meanwhile, first three command subst bugs mentioned below are fixed. :)
16
172007-05-06
4hush: more bugs spotted. Comparison with bash: 18hush: more bugs spotted. Comparison with bash:
5bash-3.2# echo "TEST`date;echo;echo`BEST" 19bash-3.2# echo "TEST`date;echo;echo`BEST"
6TESTSun May 6 09:21:05 CEST 2007BEST [we dont strip eols] 20TESTSun May 6 09:21:05 CEST 2007BEST [we dont strip eols]
diff --git a/shell/hush_test/hush-parsing/process_subst.right b/shell/hush_test/hush-parsing/process_subst.right
index 8f9ab9d40..397bc8067 100644
--- a/shell/hush_test/hush-parsing/process_subst.right
+++ b/shell/hush_test/hush-parsing/process_subst.right
@@ -1,2 +1,3 @@
1TESTzzBEST 1TESTzzBEST
2TEST$(echo zz)BEST 2TEST$(echo zz)BEST
3TEST'BEST
diff --git a/shell/hush_test/hush-parsing/process_subst.tests b/shell/hush_test/hush-parsing/process_subst.tests
index f8299a514..21996bc0e 100755
--- a/shell/hush_test/hush-parsing/process_subst.tests
+++ b/shell/hush_test/hush-parsing/process_subst.tests
@@ -1,2 +1,3 @@
1echo "TEST`echo zz;echo;echo`BEST" 1echo "TEST`echo zz;echo;echo`BEST"
2echo "TEST`echo '$(echo zz)'`BEST" 2echo "TEST`echo '$(echo zz)'`BEST"
3echo "TEST`echo "'"`BEST"