Ash internal 'read' command and pipes
Xabier Oneca -- xOneca
xoneca at gmail.com
Wed Oct 9 08:49:38 UTC 2013
Hello list!
I am new here, in the list.
I wonder if 'read' can read from pipes, because the following should
print 'testing' but instead 'got' remains undefined...
$ echo testing | read got
$ echo $got
But I tried with file redirections and it works (as expected):
$ echo testing > /tmp/foo; read got < /tmp/foo
$ echo $got
testing
I found this while using BB 1.18.5, but tested in latest v1.21.1 and
still does the same.
Any clue, or is it a bug/feature in ash?
Thanks!
--
xOneca_,,_
More information about the busybox
mailing list