Piping to a 'while' loop in dash does not seem to work
- Dominant language
- Perl
- Stars
- 3.9k
- Forks
- 213
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
Hello. In trying to process the output of 'ls' by lines in dash, I ran into what I believe is a problem. I used the following command which should output each line of 'ls' enclosed in single quotes (I tested it in another app called iSH running dash and it produces the correct output), but the command just hangs:
[\W]$ ls -a | while read line; do echo "'$line'"; done
I have to press CTRL-d twice which gives me the a-Shell prompt.
I think the problem may be occurring while piping the output of 'ls' to the dash 'while' loop, but I cannot be sure. I thought that I should file an issue so that the problem is known.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.