Re: Reintroducing fish, the friendly interactive shell



On 6 Mar 2006 09:49:29 -0800, liljencrantz@xxxxxxxxx wrote:
[...]
There are a great many features in fish that have little to do with
syntax, like syntax highlighting, advanced tab completion, X clipboard
intergration, etc.. But this post is only mean to discuss the design
and implications of the changes made to regular shell syntax in fish.
Specifically, I'd be interested in opinions on security considerations,
regressions and further possible changes to the syntax. To try out
fish, visit http://roo.no-ip.org/fish/ or use the prepackaged version
avaialable for many systems including Debian. Fish is GPL:ed, and it
works on most Linux versions, NetBSD, FreeBSD, OS X, Solaris and
possibly Cygwin.
[...]

You say on your web site:

the string **l will match doc/html and user_doc/html. The **
wildcard will only match directory names, not file names. The
recursive wildcard matching feature has been borrowed from
zsh, but the ability to mix recursive wildcards with other
tokens, such as user**/ is unique to fish.

What do you mean by that?

In zsh, **/ is the same as (*/)# (** alone is not special, # is
an extended globbing operator)

So **/*l in zsh would seem to return what fish's **l returns.

But what would user**/ be?

**/user*/

(user*/)#

or **/user*/**/*/ ?

(Note that ksh93 also borrowed ** from zsh (in yet another way,
and is not enabled by default))

--
Stephane
.



Relevant Pages

  • Reintroducing fish, the friendly interactive shell
    ... a new shell I'd written. ... fish was what I would describe as a program with some nice ... interactive features, and a quite lousy language syntax. ...
    (comp.unix.shell)
  • Re: Reintroducing fish, the friendly interactive shell
    ... Thank you for another shell resource; ... I belive I mentioned that bash provides local variables in my original ... that is proof of a completely broken syntax. ... The fish parser uses ...
    (comp.unix.shell)
  • Re: Reintroducing fish, the friendly interactive shell
    ... Or with zsh -o csh_null_glob ... This is one of the places where the csh syntax makes more sense ... Fish differes from rc in how multiple expansions in the same argument ... very dangerous to me (if you intend to write fish scripts). ...
    (comp.unix.shell)
  • Re: Reintroducing fish, the friendly interactive shell
    ... syntax, like syntax highlighting, advanced tab completion, X clipboard ... and implications of the changes made to regular shell syntax in fish. ... recursive wildcard matching feature has been borrowed from ...
    (comp.unix.shell)