OSSP CVS Repository

ossp - Difference in ossp-pkg/var/var.pod versions 1.7 and 1.8
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/var/var.pod 1.7 -> 1.8

--- var.pod      2001/11/20 13:08:17     1.7
+++ var.pod      2001/11/20 15:46:35     1.8
@@ -531,22 +531,17 @@
 This operation will replace the contents of $name with "word" if $name
 is not empty. Otherwise, it will expand to the contents of $name.
 
-=item ${name:o<start>-<end>}
+=item ${name:o<start>,<end>}
 
 This operation will cut the string starting at position "start" to
 ending position "end" out of the contents of $name and return that.
-Please note that the character at position "end" is not included in
-the result, "end - 1" is the last character position returned.
-${name:o3,4}, for instance, will return the substring from position 3
-to position 4 -- that is exactly one character. Also, please note that
-start positions begin at zero (0)! If the "end" parameter is left out,
-as in ${name:o3,}, the operation will return the string starting at
-position 3 until the end.
+Please note that the character at position "end" is included in the
+result; ${name:o3,4} for instance, will return a two-character string.
+Also, please note that start positions begin at zero (0)! If the "end"
+parameter is left out, as in ${name:o3,}, the operation will return
+the string starting at position 3 until the end.
 
-//FIXME THL: I expect start-end *inclusive*
-//FIXME THL: I expect start,len len characters not len-1
-
-=item ${name:o<start>,<length>}
+=item ${name:o<start>-<length>}
 
 This operation will cut the range of "start" to "end" out of the
 contents of $name and return that. ${name:o3-4} means, for instance,

CVSTrac 2.0.1