shithub: riscv

ref: 890b97fa08c541e020888c2514cadebe8b812d2e
dir: /rc/bin/ape/psh/

View raw version
#!/bin/rc
# set up a shell running in an approximate POSIX 1003.2 environment
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)
	bind -a /$cputype/bin/pub /bin
/bin/sh $*