Ted Leung on the air
Ted Leung on the air: Open Source, Java, Python, and ...
Ted Leung on the air: Open Source, Java, Python, and ...
Wed, 27 Apr 2005
Things I never knew about zsh
[00:18] |
[computers/programming] |
# |
TB |
F |
G |
3 Comments |
I've been using the Z Shell since I was a graduate student many years ago. Zsh has so many features that I'm always discovering something new. This week I discovered that you can run a substitution on the value of a parameter. To do this, you use
${PARAMETERNAME/pattern/replacement}
I guess I need to try and read the whole zsh manual again...
Works in plain old POSIX
Posted by chewie at Wed Apr 27 06:05:55 2005
sh
, too. You gain portability regardless of shell variant (as long as it implements a respectable subset of the POSIX spec.)Posted by chewie at Wed Apr 27 06:05:55 2005
Zsh is wonderful, but too large too digest in one sitting. Just a couple of weeks ago I discovered vared, a great built-in command that I now use constantly to modify any shell variable in-place, e.g. "vared path", "vared manpath", etc...
Posted by Olifante at Wed Apr 27 08:01:57 2005
Posted by Olifante at Wed Apr 27 08:01:57 2005
A few more zsh comments here -- http://tmp.i.am/2005/04/27.html
Posted by Doug L. at Wed Apr 27 21:31:41 2005
Posted by Doug L. at Wed Apr 27 21:31:41 2005
You can subscribe to an RSS feed of the comments for this blog:
Add a comment here:
You can use some HTML tags in the comment text:
To insert a URI, just type it -- no need to write an anchor tag.
Allowable html tags are:
You can also use some Wiki style:
URI => [uri title]
<em> => _emphasized text_
<b> => *bold text*
Ordered list => consecutive lines starting spaces and an asterisk
To insert a URI, just type it -- no need to write an anchor tag.
Allowable html tags are:
<a href>
, <em>
, <i>
, <b>
, <blockquote>
, <br/>
, <p>
, <code>
, <pre>
, <cite>
, <sub>
and <sup>
.You can also use some Wiki style:
URI => [uri title]
<em> => _emphasized text_
<b> => *bold text*
Ordered list => consecutive lines starting spaces and an asterisk