On Mon, Apr 05, 2010 at 08:55:03PM -0700, Claus Assmann wrote: > > ok, here's something that doesn't look right (hmm, I should > probably file a bug?) >
you don;t need to open bug reports for this stuff - just let us know. in this case it looks like the Pf macro is misbehaving. i've mailed kristaps and ingo to let them know. jmc > 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.