ref: 339cb9d308cccf856af1d995c7888419a648e444
parent: 1461fe5706d6ea7ed7aacca5866a4fdbc682a9fa
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Sat May 26 17:50:10 EDT 2012
fix more enviroment pollution
--- a/rc/bin/juke
+++ b/rc/bin/juke
@@ -1,7 +1,6 @@
#!/bin/rc
-
+rfork e
wide=`{echo $vgasize | sed 's/(.*)x.*x.*/\1 > 240/' | hoc}-
debug=0
tflag=''
wflag=''
--- a/rc/bin/sysinfo
+++ b/rc/bin/sysinfo
@@ -1,4 +1,6 @@
-#!/bin/rc
+#!/bin/rc
+rfork e
+
fn logprog{ echo % `{echo $"* | sed 's/#/''#''/g'} $*
--- a/rc/bin/sysupdate
+++ b/rc/bin/sysupdate
@@ -1,24 +1,16 @@
#!/bin/rc
-
rfork n
cd /
-
-incoming=1
-
-switch($1){-case -h
- echo usage: sysupdate [-i] >[1=2]
- exit usage
-case -i
- incoming=0
-}
-
-rfork n
-cd /
if(! test -d .hg)
bind -ac /dist/plan9front /
-
-if(~ $incoming 1)
- hg incoming
+while(! ~ $#* 0){+ switch($1){+ case -i
+ hg incoming
+ case *
+ echo usage: sysupdate [-i] >[1=2]
+ exit usage
+ }
+ shift
+}
hg -v pull -u
-
--- a/rc/bin/tap
+++ b/rc/bin/tap
@@ -1,4 +1,5 @@
#!/bin/rc
+rfork e
v=()
--- a/sys/src/games/music/juke.rc
+++ b/sys/src/games/music/juke.rc
@@ -1,7 +1,6 @@
#!/bin/rc
-
+rfork e
wide=`{echo $vgasize | sed 's/(.*)x.*x.*/\1 > 240/' | hoc}-
debug=0
tflag=''
wflag=''
--
⑨