Orthogonality of Sequence and Psuedo-Sequence Names.

Bug #33691 reported by Ralph Corderoy
4
Affects Status Importance Assigned to Milestone
nmh (Ubuntu)
Confirmed
Wishlist
Unassigned

Bug Description

Just got bitten by this on Ubuntu's nmh 1.1-release-3. Thought it could be
improved but no time personally so raising a bug for consideration up-stream.

    $ list() { pick -list "$@" | fmt; }
    $ list all
    1 2 3 4 5 6 7 8 9 10
    $ list .
    5
    $ list .:3
    5 6 7
    $ list .:-3
    3 4 5

OK so far.

    $ list first:3
    1 2 3
    $ list first:-3
    1

Again, OK. Matches behaviour of earlier if `.' was `first'.

    $ list last:3
    8 9 10
    $ list last:-3
    8 9 10

But, unlike `first', these give the same output. I'd expect `10' for
the first one as it would give if `.' was `last'.

    $ pick -seq foo all
    10 hits
    $ list foo
    1 2 3 4 5 6 7 8 9 10
    $ list foo:3
    1 2 3
    $ list foo:-3
    8 9 10

Nice behaviour.

    $ list all:3
    pick: bad message list all:3
    0
    $ list all:-3
    pick: bad message list all:-3
    0

But why can't I just use `all' instead of needing `foo' in the first place?

Daniel T Chen (crimsun)
Changed in nmh:
importance: Medium → Wishlist
Changed in nmh (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.