[Jprogramming] Bug/Inconsistency among namelist verbs from z locale

Raul Miller rauldmiller at gmail.com
Tue Sep 27 00:37:56 HKT 2011


On Mon, Sep 26, 2011 at 11:55 AM, The Geeko <theGeeko61 at gmail.com> wrote:
> No, I don't want to re-define language elements for this issue.  In fact, I
> could just avoid using nl altogether and rely on namelist instead.  It has the
> expected (and, correct, so it feels) behavior.

Yes, it really sounds like you wanted namelist (low level tool) rather
than names (user friendly tool).

>>    'wd' names_z_''
> I will be deprived of these because the behavior of nl is unpredictable...
> although, to be fair, the last example works with namelist as well.

But with differing results:

  'wd' namelist_z_ 0 1 2 3

gives you all names in z which begin with a 'd' or with a 'w'.

Thus 'wcsize' will appear for 'wd' namelist_z_ 0 1 2 3 but it would
not appear for 'wd' nl_z_ ''

-- 
Raul


More information about the Programming mailing list