* ANNOUNCEMENT: Introducing the friendly interactive shell
@ 2005-02-23 16:49 liljencrantz
0 siblings, 0 replies; only message in thread
From: liljencrantz @ 2005-02-23 16:49 UTC (permalink / raw)
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/ #
##########################################################################
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-02-23 16:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-23 16:49 ANNOUNCEMENT: Introducing the friendly interactive shell liljencrantz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox