Bug 1159

Summary: Ash behavior still not correct with $(</tmp/file)
Product: Busybox Reporter: Lauri Kasanen <curaga>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description Lauri Kasanen 2010-02-21 09:32:20 UTC
Ref bug 1087

The segfault is gone in git master, but the behavior is not correct.

cat /tmp/file
test

echo $(</tmp/file)

^ nothing, it should output the same. In bash it works, in bb until 1.14.4 it works.
Comment 1 Denys Vlasenko 2010-02-21 10:59:14 UTC
I tend to classify $(</tmp/file) special case as a bashism.

I don't see it working in ash in 1.14.4. I also tried 1.10.4, 1.13.4, 1.14.3 and 1.15.0 and they all show this behavior:

# ./busybox ash
# echo $(</tmp/file)

#

Which .config file do you use to make 1.14.4 work?
Comment 2 Lauri Kasanen 2010-02-21 13:18:39 UTC
I'm sorry, my example was not the type I intended. echo $(</tmp/file) does indeed not work in busybox while it works in bash.

The correct use case was [ -e "/tmp/$(</tmp/filename)" ], which works in git master.

Thanks for your time.