On Sun, Dec 11, 2011 at 05:48:37PM -0500, A. Costa wrote: > This works: > > # Count from 40, 4 steps per, 25 times, & print it backwards. > % enum .. 25x 4 .. 40 > > ... but not this: > > % enum 25x 4 40 > ERROR: Combination of command line arguments could not be parsed: > 25x 4 40 > > But the latter dotless syntax would be easier to type, and > the trailing 'x' in '25x' seems properly unambiguous.
It seems indeed to be non-ambiguous, though I'm not sure allowing this syntax is a good idea. It is, after all, only readable by people very comfortable with the different input types. We'll explore this. > The man page describes other COUNTx usages: > > % man enum | nl | grep COUNTx | grep -v LEFT > 107 o enum .. COUNTx STEP .. RIGHT > 112 o enum .. COUNTx STEP .. > 113 o enum .. COUNTx .. RIGHT > 121 o enum .. COUNTx .. > 125 o enum COUNTx > > Only line 125 dispenses with the leading '..', yet the other lines > would be unambiguous if the leading '..' were removed. 125 was introduced to make enum a drop-in replacement for seq. The others you're suggeting would be convenience shortcuts which we'll consider, though I'm not sure the introduced lack of readability is a good idea. We'll ponder about it. Thanks anyways for trying to make enum better! Hauke -- .''`. Jan Hauke Rahm <j...@debian.org> www.jhr-online.de : :' : Debian Developer www.debian.org `. `'` Member of the Linux Foundation www.linux.com `- Fellow of the Free Software Foundation Europe www.fsfe.org
signature.asc
Description: Digital signature