From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <200007142137.RAA26997@smtp3.fas.harvard.edu> To: 9fans@cse.psu.edu Subject: Re: [9fans] command history From: "Russ Cox" Date: Fri, 14 Jul 2000 17:37:19 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: dde558d6-eac8-11e9-9e20-41e7f4b1d025 it also has a bunch of affordances --delete_word and such-- for editing a command line --a task that in the Plan 9 style is done with a mouse and Rio. ^w will delete the current word, in the editors and in rio. and ^u the current line. be careful though: ^w deletes the current _window_ in microsoft-land, which is bad news once your fingers get trained. some people said they didn't get this yesterday, so since i'm talking... g% cat /usr/rsc/bin/rc/" #!/bin/rc { if(test -r /mnt/acme/acme/body) cat /mnt/acme/acme/body if not cat /dev/text } | grep '^[^ ]*%[ ]*'$1 | {echo; cat} | pr -t -n | sort -u +1 | sort -n | sed 's/^ *[0-9]+ //' | grep . # the silly {echo; cat} gets around pr printing "empty file" when # presented with no input. g% for example: g% " mk >>> g% mk >>> g% mk test g% shows the commands i've run in this window that begin with "mk", ripe for editing or resending. (except the >>>'s don't get printed in real life).