Symbian3/PDK/Source/GUID-4C31BFCC-BC2A-55B1-8D3B-3355032E2062.dita
changeset 5 f345bda72bc4
parent 3 46218c8b8afa
child 14 578be2adaf3e
equal deleted inserted replaced
4:4816d766a08a 5:f345bda72bc4
     7     Nokia Corporation - initial contribution.
     7     Nokia Corporation - initial contribution.
     8 Contributors: 
     8 Contributors: 
     9 -->
     9 -->
    10 <!DOCTYPE concept
    10 <!DOCTYPE concept
    11   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
    11   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
    12 <concept xml:lang="en" id="GUID-4C31BFCC-BC2A-55B1-8D3B-3355032E2062"><title>autoload</title><prolog><metadata><keywords/></metadata></prolog><conbody><p><userinput>autoload [ {+|-}UXmt ] [ -wkz ] [ name ... ]</userinput> </p> <p>Equivalent to functions <codeph>-u</codeph>, with the exception of <codeph>-X</codeph> /<codeph>+X</codeph>, <codeph>-w</codeph>, <codeph>-k</codeph> and <codeph>-z</codeph>. </p> <table id="GUID-9C277500-94BE-5D0D-8F4F-ACBDA3B7FBB6"><tgroup cols="2"><colspec colname="col0"/><colspec colname="col1"/><tbody><row><entry><p> <codeph>-X</codeph>  </p> </entry> <entry><p>Can be used only inside a shell function, and may not be followed by a name. It causes the calling function to be marked for autoloading and then immediately loaded and executed, with the current array of positional parameters as arguments. This replaces the previous definition of the function. If no function definition is found, an error is printed and the function remains undefined and marked for autoloading. </p> </entry> </row> <row><entry><p> <codeph>+X</codeph>  </p> </entry> <entry><p>Attempts to load each name as an autoloaded function, but does not execute it. The exit status is zero (success) if the function was not previously defined and a definition for it was found. This does not replace any existing definition of the function. The exit status is nonzero (failure) if the function was already defined or when no definition was found. In the latter case the function remains undefined and marked for autoloading. </p> <p>It can also be combined with either <codeph>-k</codeph> or <codeph>-z</codeph> to make the function be loaded using <codeph>ksh-style</codeph> or <codeph>zsh-style</codeph> autoloading, respectively. If neither is given, the current setting of the <codeph>KSH_AUTOLOAD </codeph> options determines how the function is loaded. With <codeph>ksh-style</codeph> autoloading, the contents of the file will not be executed immediately. Instead, the function created will contain the contents of the file plus a call to the function itself appended to it, thus given normal <codeph>ksh</codeph> autoloading behaviour on the first call to the function. </p> </entry> </row> </tbody> </tgroup> </table> <p> <b>Note:</b> Symbian platform does not support the use of <codeph>-w</codeph> option. </p> </conbody></concept>
    12 <concept id="GUID-4C31BFCC-BC2A-55B1-8D3B-3355032E2062" xml:lang="en"><title>autoload</title><prolog><metadata><keywords/></metadata></prolog><conbody>
       
    13 <p><userinput>autoload [ {+|-}UXmt ] [ -wkz ] [ name ... ]</userinput> </p>
       
    14 <p>Equivalent to functions <codeph>-u</codeph>, with the exception of <codeph>-X</codeph> /<codeph>+X</codeph>, <codeph>-w</codeph>, <codeph>-k</codeph> and <codeph>-z</codeph>. </p>
       
    15 <table id="GUID-9C277500-94BE-5D0D-8F4F-ACBDA3B7FBB6">
       
    16 <tgroup cols="2"><colspec colname="col0"/><colspec colname="col1"/>
       
    17 <tbody>
       
    18 <row>
       
    19 <entry><p> <codeph>-X</codeph>  </p> </entry>
       
    20 <entry><p>Can be used only inside a shell function, and may not be followed
       
    21 by a name. It causes the calling function to be marked for autoloading and
       
    22 then immediately loaded and executed, with the current array of positional
       
    23 parameters as arguments. This replaces the previous definition of the function.
       
    24 If no function definition is found, an error is printed and the function remains
       
    25 undefined and marked for autoloading. </p> </entry>
       
    26 </row>
       
    27 <row>
       
    28 <entry><p> <codeph>+X</codeph>  </p> </entry>
       
    29 <entry><p>Attempts to load each name as an autoloaded function, but does not
       
    30 execute it. The exit status is zero (success) if the function was not previously
       
    31 defined and a definition for it was found. This does not replace any existing
       
    32 definition of the function. The exit status is nonzero (failure) if the function
       
    33 was already defined or when no definition was found. In the latter case the
       
    34 function remains undefined and marked for autoloading. </p> <p>It can also
       
    35 be combined with either <codeph>-k</codeph> or <codeph>-z</codeph> to make
       
    36 the function be loaded using <codeph>ksh-style</codeph> or <codeph>zsh-style</codeph> autoloading,
       
    37 respectively. If neither is given, the current setting of the <codeph>KSH_AUTOLOAD </codeph> options
       
    38 determines how the function is loaded. With <codeph>ksh-style</codeph> autoloading,
       
    39 the contents of the file will not be executed immediately. Instead, the function
       
    40 created will contain the contents of the file plus a call to the function
       
    41 itself appended to it, thus given normal <codeph>ksh</codeph> autoloading
       
    42 behaviour on the first call to the function. </p> </entry>
       
    43 </row>
       
    44 </tbody>
       
    45 </tgroup>
       
    46 </table>
       
    47 <p> <b>Note:</b> The Symbian platform does not support the use
       
    48 of <codeph>-w</codeph> option. </p>
       
    49 </conbody></concept>