5 echo 'usage: patch/note patch-name' >[1=2]
9 if(! test -d /n/sources/patch){
14 if(! test -d /n/sources/patch/$1){
15 echo 'no such patch' /n/sources/patch/$1 >[1=2]
19 builtin cd /n/sources/patch/$1 || exit nopatch
21 echo 'bad patch: '$status >[1=2]
25 if(~ `{cat /proc/$pid/fd | awk 'NR==2{print $NF}'} */dev/cons && ~ `{ls -l /dev/consctl | awk '{print $1}'} *w*){
28 {echo `{date} `{cat /dev/user}
29 cat |sed 's/^/ /'; echo } >>notes
33 {echo `{date} `{cat /dev/user}
34 cat |sed 's/^/ /'; echo } >>notes