On Mon, Apr 05, 2010, Marc Espie wrote: > This should indeed be reported, thanks.
ok, here's something that doesn't look right (hmm, I should probably file a bug?) man sh (snapshot i386 from today): The following forms of parameter substitution can also be used: Pf ${#name} The number of positional parameters if name is `*', `@', or not specified; otherwise the length of the string value of parameter name. Pf ${#name[*]} Pf ${#na...@]} The number of elements in the array name. on an older system (4.6): The following forms of parameter substitution can also be used: ${#name} The number of positional parameters if name is `*', `@', or not specified; otherwise the length of the string value of parameter name. ${#name[*]} ${#na...@]} The number of elements in the array name.