mesalock-linux / mesabox

A collection of core system utilities written in Rust for Unix-like systems (and now Windows)
BSD 3-Clause "New" or "Revised" License
137 stars 19 forks source link

posix/sh: pipeline_subshell test fails in interactive shell #37

Closed Arcterus closed 6 years ago

Arcterus commented 6 years ago

Not exactly sure what's going on, but I imagine a file descriptor isn't being dropped somewhere. This causes the cat within the subshell to hang (it might be the cat after the subshell, not sure yet).

Arcterus commented 6 years ago

This was fixed by setting the output of any previous items in a pipe as the input file descriptor for subshells manually specified like ( stuff; more stuff ).