Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • ok, ill try that Commented Sep 17, 2017 at 15:15
  • i get line 13: read: read error: 4: Bad file descriptor when i try read -u 4 idk, and changing to 3<&${test[0]} doesnt seem to work Commented Sep 17, 2017 at 15:23
  • @ClarkKent You have to read from &3 i.e. it must be read -u 3. You can only write to &4. Commented Sep 17, 2017 at 15:35