[Bug 3025] hush: 'eval' built-in fails on multiline strings

bugzilla at busybox.net bugzilla at busybox.net
Thu Dec 30 22:28:30 UTC 2010


--- Comment #1 from Denys Vlasenko <vda.linux at googlemail.com>  ---
Current git doesn't have this bug:

$ cat z2
echo '#!/bin/sh'
echo 'echo VAR1="val1"'
echo 'echo VAR2="val2"'
} >z1
chmod 755 z1
echo "before: VAR1='$VAR1'"
echo "before: VAR2='$VAR2'"
eval "`./z1`"
echo "after: VAR1='$VAR1'"
echo "after: VAR2='$VAR2'"

$ ./busybox hush z2
before: VAR1='a'
before: VAR2='b'
after: VAR1='val1'
after: VAR2='val2'

# ./busybox | head -1
BusyBox v1.19.0.git (2010-12-30 23:21:08 CET) multi-call binary.

Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the busybox-cvs mailing list