On Mon, May 9, 2016 at 4:33 AM, Jeff King <peff@xxxxxxxx> wrote: > On Mon, May 09, 2016 at 08:30:51AM +0200, demerphq wrote: >> > - perl -le 'print for $ARGV[0]..$ARGV[1]' -- "$@" >> > + test_seq_counter__=$1 >> > + while test "$test_seq_counter__" -le $2 >> > + do >> > + echo "$test_seq_counter__" >> > + test_seq_counter__=$((test_seq_counter__ + 1)) >> > + done >> > } >> >> Is that perl snippet ever called with non-numeric output? >> >> perl -le 'print for $ARGV[0]..$ARGV[1]' -- A E >> A >> B >> C >> D >> E > > I had that thought, too, but I think it would be an error to do so. > test_seq is supposed to be a replacement for "seq", which does not > understand non-numeric sequences. Although, the comment block just above test_seq() in test-lib-functions.sh says otherwise: Print a sequence of numbers or letters in increasing order. This is similar to GNU seq(1), but the latter might not be available everywhere (and does not do letters). It may be used like: for i in $(test_seq 100) do for j in $(test_seq 10 20) do for k in $(test_seq a z) do echo $i-$j-$k done done done -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html