shithub: riscv

ref: 4fd09def0fc51d0606e677f1ab59ad695d1cd780
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
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 $*