garmin / pyrex

Seamless container setup for developing with OpenEmbedded/Yocto Project
Apache License 2.0
38 stars 30 forks source link

Use fd 9, not fd 11, to improve shell portability #34

Closed kergoth closed 5 years ago

kergoth commented 5 years ago

On zsh, pyrex currently fails due to the usage of fd 11. It seems that use of fds greater than 9 are implementation defined, and therefore not portable, running into issues with ksh or zsh. See section 2.7, Shell Command Language, POSIX.1-2017:

Open files are represented by decimal numbers starting with zero. The largest possible value is implementation-defined; however, all implementations shall support at least 0 to 9, inclusive, for use by the application.

Close #31