[Bug 3025] New: hush: 'eval' built-in fails on multiline strings
bugzilla at busybox.net
bugzilla at busybox.net
Thu Dec 30 17:37:02 UTC 2010
https://bugs.busybox.net/show_bug.cgi?id=3025
Summary: hush: 'eval' built-in fails on multiline strings
Product: Busybox
Version: 1.13.x
Platform: Other
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Standard Compliance
AssignedTo: unassigned at busybox.net
ReportedBy: kpet at free.fr
CC: busybox-cvs at busybox.net
Estimated Hours: 0.0
Platform : Lantronix Xport Pro (m68knommu, Coldfire)
Distrib : uClinux
I'm using a program that outputs lines like this:
----------------------
VAR1="val1"
VAR2="val2"
etc
----------------------
Willing to use these as variables in a script without using a temporary file, I
do (simple example):
---------------------------
eval "`./myprog`"
echo $VAR1
echo $VAR2
---------------------------
This works with bash but not with hush (which is the only shell provided with
busybox that works on my platform): only first var is ok. I tried playing a
little with the IFS variable, without any satisfying result. I had to modify my
program to output all variable assignations on a single line.
Is this behavior expected ?
--
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