dot

packages and services management
Log | Files | Refs | README

commit 1a24c11c2dea77323b2bf417e67c5566f0331a07
parent 96cf3f4da5c0b9dfc5f7013ab4a65d792bd38058
Author: Josuah Demangeon <mail@josuah.net>
Date:   Wed,  9 May 2018 14:52:21 +0200

fix rcmain with non absolute paths

Diffstat:
Mconfigure | 2+-
Arcmain | 45+++++++++++++++++++++++++++++++++++++++++++++
Muri/service | 3++-
3 files changed, 48 insertions(+), 2 deletions(-)

diff --git a/configure b/configure @@ -32,7 +32,7 @@ cd $HOME mkdir -p /9 ! git clone git://github.com/9fans/plan9port.git /9/port ! git clone git://git.suckless.org/9base /9/base +cp rcmain /9/port/etc cd /9/base make PREFIX=/9 install mkdir -p /9/port/etc -cp /9/etc/rcmain /9/port/etc diff --git a/rcmain b/rcmain @@ -0,0 +1,45 @@ +# rcmain: Plan 9 on Unix version +if(~ $#HOME 1) home=$HOME +if(~ $#home 0) home=/ +if(~ $#ifs 0) ifs=' +' +switch($#prompt){ +case 0 + prompt=('; ' ' ') +case 1 + prompt=($prompt ' ') +} +if(~ $rcname ?.out ?.rc */?.rc */?.out) prompt=('broken! ' ' ') +if(flag p) path=(/bin /usr/bin) +if not{ + finit + # should be taken care of by rc now, but leave just in case +} +fn sigexit +if(! ~ $#cflag 0){ + if(flag l && test -r $home/lib/profile) . $home/lib/profile + status='' + eval $cflag + exit $status +} +if(flag i){ + if(flag l && test -r $home/lib/profile) . $home/lib/profile + status='' + if(! ~ $#* 0) . $* + . -i '/dev/stdin' + exit $status +} +if(flag l && test -r $home/lib/profile) . $home/lib/profile +if(~ $#* 0){ + . /dev/stdin + exit $status +} +status='' +if(! ~ $1 /*) + first=$1 + shift + *=(./$first $*) + first='' +} +. $* +exit $status diff --git a/uri/service b/uri/service @@ -4,13 +4,14 @@ gopher://gopherpedia.com/7/lookup gopher://jgw.mdns.org/7/.bin-cgi/gophermap.dcgi gopher://me0w.net/7/searx.dcgi http://clique-salope.ovh +http://duckduckgo.com http://idiotbox.codemadness.org http://mixtape.moe http://pdp11.aiju.de http://petapleer.com/ http://tttthis.com/rememberwebsites.php +http://verylegit.link/ http://wiby.me http://win95.ajf.me/win95.html http://www.reddit.com/r/netsukuku/ -http://duckduckgo.com telnet://mapscii.me