From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <7420c84252850512236ab0ad6ce98879@quanstro.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] How to move to rc from sh/bash From: erik quanstrom Date: Sat, 9 Feb 2008 04:00:21 -0500 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 4d553664-ead3-11e9-9d60-3106f5b1d025 > 1. Is it possible to do command line edit in rc? > That is, in bash, both emacs and vi like keybindings can be used > (thanks to readline library). But in rc, I have not noticed that yet. > As a result, some basic usuages of a shell, such as recalling the > previously executed commands, have to be done by mouse (snarf and > paste). command line editing is provided by acme in the case of win, or rio(1) directly. not hold mode entered by typing . > 2. In non-interactive use (script programming), what's the main > advantages of rc over sh/bash? tom duff's original paper is in /sys/doc/rc.ps. i don't think i can make a better argument for rc than that. personally, i think the regularized grammer and quoting pay big dividends. rc is also small. it's not hard to understand the virtual machine its built around. but you'll need to decide for your self. - erik