From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 10d4db,51106491eb2958ad,start X-Google-Attributes: gid10d4db,public X-Google-Language: ENGLISH,ASCII-7-bit Return-Path: Path: g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!tdsnet-transit!newspeer.tds.net!cyclone.bc.net!news.alt.net!cola.stump.algebra.com!robomod!not-for-mail X-COLA-Policy: http://stump.algebra.com/~cola X-COLA-Info-1: Send submissions to cola@stump.algebra.com X-COLA-Info-2: Send complaints to cola-admin@stump.algebra.com X-Comment: moderators do not necessarily agree or disagree with this article. X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) Date: Wed, 23 Feb 2005 10:49:29 CST From: liljencrantz@gmail.com Newsgroups: comp.os.linux.announce Subject: ANNOUNCEMENT: Introducing the friendly interactive shell Organization: http://groups.google.com Message-ID: <1108475113.691471.54290@g14g2000cwa.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1108475118 25795 127.0.0.1 (15 Feb 2005 13:45:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 15 Feb 2005 13:45:18 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: g14g2000cwa.googlegroups.com; posting-host=130.237.60.79; posting-account=Vx26BQ0AAAD4v3Dlto8jCdFBg0m798uE X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on ak47.algebra.com * 0.3 NO_REAL_NAME From: does not include a real name * -0.1 RCVD_IN_BSP_OTHER RBL: Sender is in Bonded Sender Program (other relay) * [IronPort Bonded Sender - ] X-Spam-Status: No, hits=0.2 required=5.0 tests=NO_REAL_NAME,RCVD_IN_BSP_OTHER autolearn=no version=2.63 X-Auth: PGPMoose V1.1 PGP comp.os.linux.announce iQBVAwUAQhy0GSFvAtx2nXvNAQH2NgIAjPC5ASCEYxAWIMPjKy+vKj6ioGie/sQc OFP3FidCfYRZfvqbUT8vFyaV7oHcqd7LEnYY+O1uMFIaok2t/ulD1A== =ZOCJ Xref: g2news1.google.com comp.os.linux.announce:703 I've long been irked by how much shells like bash and zsh seem to focus on scriptability, when I spend 90 % of my time in front of a shell using it interactively. Among the features I've missed in modern shells are: * Good terminal handling, like detecting when a background process has written output and automatically redraw the prompt, using terminfo to make sure backspace and delete will work more often, writing process exit notifications as soon as a process exits, etc, etc. * Discoverability. After using UNIX for 10 years, I still find out new features of Bash. I friendlier help system, preferably easy to find help in HTML format. * Better tab completion. I hate the fact that I can't use tab completion on file arguments containing wildcards. I love programable completions, but few people use them, since they're not enabled by default. * When displaying a list of possible completions, wouln't it be nice with a description of each completion, like 'Character device' or 'Manual page'? This is even more useful when combined with the programable completions of options. Cant remember the option to set the ssh encryption algorithm? Type 'ssh -' and double tap on tab, and a nice list of all ssh options, with short descriptions appear. * A useable pager for displaying long lists of tab completions. zsh jus prints all the completions, even if they won't fit. Bash uses a really bad pager. The pager should be able to scroll up and down both lines and pages at a time, and it the user starts typing, the pager should exit without consuming the output. * Syntax highligting. Pretty colors by themselves don't add very much, but combined with a bit of error detection, this is useful. Errors like reading from a non existant file, issuing a non-existant command should be highlighted. * A syntax that doesn't suck. OK, so a shell for scripting should probably be POSIX compliant, but a interactive shell should focus on beeing actually useable. This is 2005, and writing 'foo = bar' doesn't work? And how intuitive is it that an environment variable with spaces is separated into multiple arguments unless it is quoted? Single quotes and double quotes are used for two different kinds of quoting while backticks, which look nearly identical to quotes are used for subshells? Gah! I have written a shell which I call fish, that fixes all the above problems except the last one. The shell syntax is slightly different from POSIX but still sucks (Set environment variables using the 'set' builtin). Mostly the syntax for if/for/while is pretty bad. I would really like to support X copy and paste whenever the DISPLAY variable is set, but whenever I try to read the ICCCM manuals my eyes start bleeding. The reason why I wrote a new shell instead of patching i.e. bash is that the changes I propose are pretty deep, and it seemed much easier to implement them on a small and simple system first. Implementing syntax highlighting would require large changes to both readline and bash, for instance. As would implementing tab completion of wildcarded options. And BTW, the bash source code is.... a bit difficult to read. Now that I've gotten fish into a workable state, it should be easier to move over some of these changes to another shell. If these changes would be accepted, that is. fish has been tested under Solaris 9 and Fedora Core 3 and 1, it probably contains a million bugs and special code to explode your monitor, but I use it on my machine every day. If you are interested, fish is available under the GPL on http://roo.no-ip.org/fish/, you can download the source in tar.gz, tar.bz2 or srpm form, or an i386 rpm. Feedback, bug reports, build problems, flames etc are all welcome. Axel Liljencrantz ########################################################################## # Send submissions for comp.os.linux.announce to: cola@stump.algebra.com # # PLEASE remember a short description of the software and the LOCATION. # # This group is archived at http://stump.algebra.com/~cola/ # ##########################################################################