shithub: riscv

Download patch

ref: 3ec59c7b70c227846166bd1783a2859994ff9d21
parent: 189731aad01e09db1807c78af421c615ed3a3242
author: cinap_lenrek <[email protected]>
date: Mon Jan 3 13:44:22 EST 2022

ape/psh: provide /dev/fd

--- a/rc/bin/ape/psh
+++ b/rc/bin/ape/psh
@@ -3,6 +3,7 @@
 rfork en
 fn sigterm{}
 HOME=$home
+test -d /dev/fd || aux/stub -d /dev/fd && bind /fd /dev/fd
 bind -b /rc/bin/ape /bin
 bind -b /$cputype/bin/ape /bin
 if(test -d /$cputype/bin/pub)