Bug 10006 - ash: the read builtin command randomly doesn't work
Summary: ash: the read builtin command randomly doesn't work
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-02 16:30 UTC by Milos Quik
Modified: 2017-07-14 14:47 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
config file (25.61 KB, text/plain)
2017-07-02 16:30 UTC, Milos Quik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milos Quik 2017-07-02 16:30:10 UTC
Created attachment 7086 [details]
config file

The output of the following script is 42, but randomly only 4.
Runnig the script 10000 times it gives me 150 wrong result, 4.

=============== script.sh ===========

#!/usr/bin/busybox ash

read a << EOFA
4
EOFA

read b << EOFB
2
EOFB

echo "$a$b"
Comment 1 Denys Vlasenko 2017-07-14 14:47:48 UTC
Can't reproduce, it works for me indefinitely.