summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rsc2
-rw-r--r--lib/troll1
-rwxr-xr-xrc/bin/delkey42
-rw-r--r--sys/games/lib/fortunes2
-rw-r--r--sys/man/1/delkey21
5 files changed, 8 insertions, 60 deletions
diff --git a/lib/rsc b/lib/rsc
index 652be2331..e24d6475a 100644
--- a/lib/rsc
+++ b/lib/rsc
@@ -194,3 +194,5 @@ Nice debugging.
I'm sorry but I don't exactly understand.
Do you have evidence that this is important and that your change would help?
We're still struggling with this. My apologies.
+All the CLs are reviewed, right?
+Let's move on.
diff --git a/lib/troll b/lib/troll
index aeabec2e1..dca56ba7e 100644
--- a/lib/troll
+++ b/lib/troll
@@ -223,3 +223,4 @@ does anyone run harvey on bare metal, any test boxes or something setup?
How do I submit a patch? I see forks on github, but no one merging back to 9fans.
is there someone else interested in write a git tool for plan 9 ?
Subject: [golang-dev] vendoring the stdlib
+[9fans] FUSE on Plan9
diff --git a/rc/bin/delkey b/rc/bin/delkey
index c80af6a7b..4a0b4e6bc 100755
--- a/rc/bin/delkey
+++ b/rc/bin/delkey
@@ -6,47 +6,7 @@ ctl = /mnt/factotum/ctl
if(test -r /mnt/term/mnt/factotum/ctl)
ctl = /mnt/term/mnt/factotum/ctl
-fn forceit {
- switch($force){
- case no
- echo -n $* '? [y/n]' > /dev/cons
- ok = `{read}
- switch($ok){
- case y* Y*
- echo yes
- case q* Q*
- exit ''
- case *
- echo no
- }
- case *
- echo yes
- }
-}
-
-fn deleteit {
- key = `{echo $* | sed 's/ ![0-9a-zA-Z_]+\??/ /g' | sed 's/ +$//'}
- if(~ `{forceit del$key} yes)
- if(! echo del$key > $ctl)
- exit bad
-}
-
-force = no
-
-if(~ $1 '-f'){
- force = yes
- shift
-}
-
ifs='
'
-if(~ $#* 0){
- for(i in `{cat $ctl})
- deleteit $i
- exit ''
-}
-
-for(i in `{grep $"* $ctl})
- deleteit $i
-exit ''
+sed 's/ ![0-9a-zA-Z_]+\??/ /g; s/''/''''/g; s/ +$//' $ctl | awk -v 'ctl='^$ctl ' { printf "echo ''del%s'' > %s\n", $0, ctl } '
diff --git a/sys/games/lib/fortunes b/sys/games/lib/fortunes
index 69fb7a0b9..b1765e963 100644
--- a/sys/games/lib/fortunes
+++ b/sys/games/lib/fortunes
@@ -5187,3 +5187,5 @@ It would help a lot in my code reviews to understand what we are trying to achie
Unix has errno, an int. Plan 9 has an errstr, a string. Akaros has both.
No. -- Dave Sim
Now I'm heading a project that uses a RoR application to control a large series of sensors and controls in a manufacturing process.
+I can't read it because Google thinks I'm a robot and won't perform the search for me.
+Seibel: For you, what about the relation between research and actually programming? Peyton Jones: Oh, they interact a lot.
diff --git a/sys/man/1/delkey b/sys/man/1/delkey
index 2f8bbd039..88a8bad95 100644
--- a/sys/man/1/delkey
+++ b/sys/man/1/delkey
@@ -3,27 +3,10 @@
delkey \- delete keys from factotum
.SH SYNOPSIS
.B delkey
-[
-.B -f
-]
-.I pattern
.SH DESCRIPTION
.I Delkey
-shows the user each key stored in
-.IR factotum (4)
-and matching the
-.IR pattern ,
-prompting for whether the key should be deleted.
-At each prompt, typing a response beginning with
-.B y
-deletes the key, typing a response beginning with
-.B q
-aborts the listing,
-and any other response skips over the key.
-.PP
-The
-.B -f
-option disables the prompting; all keys matching the pattern are deleted.
+prints commands for deleting each key stored in
+.IR factotum (4) .
.PP
When run on a CPU server,
.I delkey