Bug 1099 - Ash segfaults when file does not exist
Summary: Ash segfaults when file does not exist
Status: RESOLVED DUPLICATE of bug 1087
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.15.x
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-17 17:27 UTC by Lauri Kasanen
Modified: 2010-02-17 17:32 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lauri Kasanen 2010-02-17 17:27:56 UTC
We use this construct to read a file:

echo $(</tmp/file)

Now, if this file doesn't exist, busybox ash as found in 1.15.3 and 1.16.0 segfaults. 1.14.3 ash and bash both do the right thing, which is 

bash-3.2$ $(</tmp/non)
bash: /tmp/non: No such file or directory
Comment 1 Lauri Kasanen 2010-02-17 17:32:17 UTC

*** This bug has been marked as a duplicate of bug 1087 ***