<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://www.zshwiki.org/home/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://www.zshwiki.org/home/feed.php">
        <title>ZshWiki scripting</title>
        <description></description>
        <link>http://www.zshwiki.org/home/</link>
        <image rdf:resource="http://www.zshwiki.org/home/lib/images/favicon.ico" />
       <dc:date>2010-09-09T14:06:08+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://www.zshwiki.org/home/scripting/args?rev=1262679647"/>
                <rdf:li rdf:resource="http://www.zshwiki.org/home/scripting/array?rev=1262679647"/>
                <rdf:li rdf:resource="http://www.zshwiki.org/home/scripting/paramexp?rev=1262679647"/>
                <rdf:li rdf:resource="http://www.zshwiki.org/home/scripting/paramflags?rev=1262679647"/>
                <rdf:li rdf:resource="http://www.zshwiki.org/home/scripting/parammod?rev=1262679647"/>
                <rdf:li rdf:resource="http://www.zshwiki.org/home/scripting/start?rev=1262679647"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://www.zshwiki.org/home/lib/images/favicon.ico">
        <title>ZshWiki</title>
        <link>http://www.zshwiki.org/home/</link>
        <url>http://www.zshwiki.org/home/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://www.zshwiki.org/home/scripting/args?rev=1262679647">
        <dc:format>text/html</dc:format>
        <dc:date>2010-01-05T09:20:47+02:00</dc:date>
        <title>scripting:args</title>
        <link>http://www.zshwiki.org/home/scripting/args?rev=1262679647</link>
        <description>Every once in a while, people come around with code like this:


foo() { command foo $*; }


...or...


foo() { command foo $@; }


And what we'll tell them is to just use:


foo() { command foo &quot;$@&quot;; }


until they understand the subtle differences between $*, &quot;$*&quot;,
$@ and &quot;$@&quot; are. And when they do, they will see that &quot;$@&quot; is
actually the correct expression to use when they want to process all
arguments that the script/function was given.</description>
    </item>
    <item rdf:about="http://www.zshwiki.org/home/scripting/array?rev=1262679647">
        <dc:format>text/html</dc:format>
        <dc:date>2010-01-05T09:20:47+02:00</dc:date>
        <title>scripting:array</title>
        <link>http://www.zshwiki.org/home/scripting/array?rev=1262679647</link>
        <description>Create an array


% local -a buffer
% buffer=(a b c)


Create an array with each words of a string


% string=&quot;Welcome to the real world, Neo&quot;
% buffer=(${=string})


Create an array of lines from a file


% buffer=(&quot;${(f)$(&lt; /etc/hosts)}&quot;)
% echo $buffer[1]
127.0.0.1       eva-O1.linagora.com     eva-01</description>
    </item>
    <item rdf:about="http://www.zshwiki.org/home/scripting/paramexp?rev=1262679647">
        <dc:format>text/html</dc:format>
        <dc:date>2010-01-05T09:20:47+02:00</dc:date>
        <title>scripting:paramexp</title>
        <link>http://www.zshwiki.org/home/scripting/paramexp?rev=1262679647</link>
        <description>Parameter expansion is one of the most important (and powerful) parts of zsh scripting.
Its behaviour may be changed by various modifiers and flags, which will be discussed below.
The zshexpn(1) manpage is a detailed reference
about every single aspect of parameter expansion. We do not intend to copy its content.
So, if the description here may seem a little incomplete, consult the manual to get a complete description.</description>
    </item>
    <item rdf:about="http://www.zshwiki.org/home/scripting/paramflags?rev=1262679647">
        <dc:format>text/html</dc:format>
        <dc:date>2010-01-05T09:20:47+02:00</dc:date>
        <title>scripting:paramflags</title>
        <link>http://www.zshwiki.org/home/scripting/paramflags?rev=1262679647</link>
        <description>Expansion Flags are very powerful. However they are sometimes not that easy to understand
by just reading the manual. So, let's look at some examples for their usage.

If you prefer German over English, this page was originally based on a blog posting:</description>
    </item>
    <item rdf:about="http://www.zshwiki.org/home/scripting/parammod?rev=1262679647">
        <dc:format>text/html</dc:format>
        <dc:date>2010-01-05T09:20:47+02:00</dc:date>
        <title>scripting:parammod</title>
        <link>http://www.zshwiki.org/home/scripting/parammod?rev=1262679647</link>
        <description>Most of these are quite easy to understand and zshexpn(1)
explains them pretty clearly, so here you'll merely get some examples on how
they can be used, with just a few remarks, where it may be needed.</description>
    </item>
    <item rdf:about="http://www.zshwiki.org/home/scripting/start?rev=1262679647">
        <dc:format>text/html</dc:format>
        <dc:date>2010-01-05T09:20:47+02:00</dc:date>
        <title>scripting:start</title>
        <link>http://www.zshwiki.org/home/scripting/start?rev=1262679647</link>
        <description>*  Arrays
		*  Parameter Expansion
		*  The ancient tale of $* and $@</description>
    </item>
</rdf:RDF>
