Orthogonality of Sequence and Psuedo-Sequence Names.
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?
Changed in nmh: | |
importance: | Medium → Wishlist |
Changed in nmh (Ubuntu): | |
status: | New → Confirmed |