aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-05-21 10:19:48 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-05-21 10:19:48 +0000
commit8805eeb44a291b830e9eb1a430d112913ffa9a24 (patch)
tree991012d53e9e2931ef00d893ef69199acdfbbe96
parent219e88d0505f9c06d42772333995887ca694465a (diff)
downloadbusybox-w32-8805eeb44a291b830e9eb1a430d112913ffa9a24.tar.gz
busybox-w32-8805eeb44a291b830e9eb1a430d112913ffa9a24.tar.bz2
busybox-w32-8805eeb44a291b830e9eb1a430d112913ffa9a24.zip
shells: update README and testsuite. environment memory leak
needs to be fixed - and documented!
-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"