Introduction
Welcome back to Linux.Ars! We have some good stuff for you this week. Axel Liljencrantz has written a helpful introduction to the Friendly Interactive Shell (Fish), a unique and innovative command line environment with a number of useful improvements. Also included in this week’s Linux.Ars is an introduction to some of the new Javascript features of Firefox 1.5, and a brief introduction to Viewglob, a shell visualization utility.
Linux.Ars is all about you, so don’t be afraid to get involved! Want to do a section for a future edition? Have a suggestion for a topic that you want us to write about? I would love some feedback. We want your comments, complaints, suggestions, requests, free hardware, death threats, or disparaging remarks about my assorted deficiencies. Send me an e-mail or instant message, or post a comment in the discussion thread!
Developers Corner
New Javascript features in Firefox 1.5
Developers rejoice, Firefox 1.5 is finally here! The latest release of the Mozilla Foundation’s popular web browser includes numerous features that empower developers and improve the versatility of the platform. Support for SVG, the canvas tag, and the Javscript 1.6 standard make this release a cause of developer celebration.
Firefox 1.5 provides support for the latest enhancements to the Javascript language. E4X adds native XML support to Javascript and provides a complete object-oriented interface to XML content. With E4X, developers can manipulate XML content with unprecedented ease. XML tags can be assigned directly to a Javascript variable:
> var xmlcontent = <foo><baz>bar</baz></foo>;
And the tag contents can be extracted with a simple, object oriented syntax:
> xmlcontent.foo.baz
bar
E4X also provides support for tag interpolation. Developers can use braces to include values in constructed XML content:
> var xmlcontent = <foo><baz>{3 + 3}</baz></foo>;
With E4X, developers can iterate over tags based on simple queries, similar to the XPath syntax. In E4X, the .. operator is equivelent to the XPath // operator. To iterate over every B tag nested inside of the A tag, you can use the following syntax:

