summaryrefslogtreecommitdiff
path: root/rc/bin/ape/psh
blob: 658102a077d1bb8541a07a4b5d7eab454beae9ba (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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 $*