From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Sat, 9 Feb 2008 15:53:29 +0800 From: "Hongzheng Wang" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: [9fans] How to move to rc from sh/bash MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Topicbox-Message-UUID: 4d14066c-ead3-11e9-9d60-3106f5b1d025 Hi all, Since I was used to sh/bash in Linux, the default shell of Plan9 rc seems not so convenient for me at first. After learning some illustrated differences between these two shell in the document [1] and also the manpage of rc, I obtained some knowledge of rc and can do some nontrivial things with it. But I still feel some necessary, powerful usages are lacked. Specifically, I have questions as follows: 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). 2. In non-interactive use (script programming), what's the main advantages of rc over sh/bash? Just like other utitlies, say sam and acme, provided by Plan9, I believe rc should also have outstanding features. Could you please point them out? Thank you all in advance. [1] http://plan9.bell-labs.com/wiki/plan9/Unix_to_Plan_9_command_translation/index.html -- HZ