plan9fox/rc/bin/ape/psh

12 lines
299 B
Text
Raw Permalink Normal View History

#!/bin/rc
# set up a shell running in an approximate POSIX 1003.2 environment
rfork en
fn sigterm{}
HOME=$home
2022-01-03 18:44:22 +00:00
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 $*