Magellan Linux

Diff of /trunk/mkinitrd-magellan/klibc/usr/dash/TOUR

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1121 by niro, Sat Sep 1 22:45:15 2007 UTC revision 1122 by niro, Wed Aug 18 21:11:40 2010 UTC
# Line 159  special codes defined in parser.h.  The Line 159  special codes defined in parser.h.  The
159          CTLVAR              Variable substitution          CTLVAR              Variable substitution
160          CTLENDVAR           End of variable substitution          CTLENDVAR           End of variable substitution
161          CTLBACKQ            Command substitution          CTLBACKQ            Command substitution
         CTLBACKQ|CTLQUOTE   Command substitution inside double quotes  
162          CTLESC              Escape next character          CTLESC              Escape next character
163    
164  A variable substitution contains the following elements:  A variable substitution contains the following elements:
# Line 179  stitution.  The possible types are: Line 178  stitution.  The possible types are:
178          VSASSIGN            ${var=text}          VSASSIGN            ${var=text}
179          VSASSIGN|VSNUL      ${var=text}          VSASSIGN|VSNUL      ${var=text}
180    
181  In addition, the type field will have the VSQUOTE flag set if the  The name of the variable comes next, terminated by an equals
182  variable is enclosed in double quotes.  The name of the variable  sign.  If the type is not VSNORMAL, then the text field in the
183  comes next, terminated by an equals sign.  If the type is not  substitution follows, terminated by a CTLENDVAR byte.
 VSNORMAL, then the text field in the substitution follows, ter-  
 minated by a CTLENDVAR byte.  
184    
185  Commands in back quotes are parsed and stored in a linked list.  Commands in back quotes are parsed and stored in a linked list.
186  The locations of these commands in the string are indicated by  The locations of these commands in the string are indicated by
187  CTLBACKQ and CTLBACKQ+CTLQUOTE characters, depending upon whether  the CTLBACKQ character.
 the back quotes were enclosed in double quotes.  
188    
189  The character CTLESC escapes the next character, so that in case  The character CTLESC escapes the next character, so that in case
190  any of the CTL characters mentioned above appear in the input,  any of the CTL characters mentioned above appear in the input,

Legend:
Removed from v.1121  
changed lines
  Added in v.1122