added the hold (pseudo-) editor; useful for hg commit

aiju 2011-05-07 19:43:16 +00:00
parent fa71f44fef
commit c4d530a909
1 changed files with 6 additions and 0 deletions

6
rc/bin/hold Executable file
View File

@ -0,0 +1,6 @@
#!/bin/rc
{
echo holdon >[1=3]
cat $1 > /dev/cons
cat /dev/cons > $1
} >[3]/dev/consctl