Plan 9 from Bell Labs’s /usr/web/sources/patch/applied/ape-script-tweeks/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
	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 webmaster@9p.io.