Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh-4.04 and w3m browser
- X-seq: zsh-users 5313
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: Vincent Lefevre <vincent@xxxxxxxxxx>, Zsh users list <zsh-users@xxxxxxxxxx>
- Subject: Re: zsh-4.04 and w3m browser
- Date: Wed, 28 Aug 2002 15:52:15 +0000
- In-reply-to: <20020828153346.GF13666@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20020828121825.GD13666@xxxxxxxxxxxxxx> <18364.1030539052@xxxxxxx> <20020828130851.GE13666@xxxxxxxxxxxxxx> <1020828152500.ZM7603@xxxxxxxxxxxxxxxxxxxxxxx> <20020828153346.GF13666@xxxxxxxxxxxxxx>
On Aug 28, 5:33pm, Vincent Lefevre wrote:
}
} But how to make it work for any command?
There is no answer but the facetious one:
for x in ${^path}*(Nx); do alias "${x:t}=globurl $x"; done
Shells are simply not designed to "think" in terms of URLs. For one thing,
nearly every character that's a metacharacter in a URL is also a metachar
to the shell. Ampersand is the most extreme example -- there is NO way
for the shell to know whether it means to separate commands or to separate
query parameters. It's not worth the effort to make the built-in globber
"understand" URL scheme prefixes.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author