Plan 9 from Bell Labs’s /usr/web/sources/plan9/rc/bin/ape/psh

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/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
if(test -d /$cputype/bin/X11){
	bind -a /$cputype/bin/X11 /bin
	if(test ! -e /env/DISPLAY)
		DISPLAY=:0.0
}

/bin/sh $*

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].