[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
seq: if FIRST is smaller than LAST
From: |
Karl Eichwalder |
Subject: |
seq: if FIRST is smaller than LAST |
Date: |
Mon, 14 Jun 2004 10:18:08 +0200 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
Reading the --help text of 'seq' (5.1.3 from alpha) I'm inclined to
assume
seq 3 1
and
seq 3 -1 1
should result in the same output:
3
2
1
But 'seq 3 1' does not produce any output. The --help text:
INCREMENT is usually negative if FIRST is greater than LAST.
Maybe, current behavior is covered by the meaning of "usually" (I'm not
a native speaker, you know).
You may also nuke this surious space at the end of the line:
--- coreutils-5.1.3/src/seq.c.~1~ 2004-02-07 21:39:17.000000000 +0100
+++ coreutils-5.1.3/src/seq.c 2004-06-14 10:16:10.566674019 +0200
@@ -96,7 +96,7 @@
fputs (_("\
\n\
If FIRST or INCREMENT is omitted, it defaults to 1. That is, an\n\
-omitted INCREMENT defaults to 1 even when LAST is smaller than FIRST.\n \
+omitted INCREMENT defaults to 1 even when LAST is smaller than FIRST.\n\
FIRST, INCREMENT, and LAST are interpreted as floating point values.\n\
INCREMENT is usually positive if FIRST is smaller than LAST, and\n\
INCREMENT is usually negative if FIRST is greater than LAST.\n\
- seq: if FIRST is smaller than LAST,
Karl Eichwalder <=