[bug#68416] [PATCH] python: add 3.20 - 3.16 to the version search list

"Zack Weinberg" <[email protected]> Tue, 16 Jan 2024 22:02:34 -0500
Newsgroups gmane.comp.sysutils.automake.patches
Message-ID <[email protected]>
On Mon, Jan 15, 2024, at 7:02 PM, Jacob Bachmeyer wrote:
> Frederic Berat wrote:
>> pythons="python python2 python3"
>> for i in {20..0};do pythons="$pythons python3.$i";done
>> for i in {7..0};do pythons="$pythons python2.$i";done
>>
>> m4_define_default([_AM_PYTHON_INTERPRETER_LIST], [$pythons])
>
> The {20..0} is a syntax unfamiliar to me, yet even Bash 3 has it...
> interesting.

Just responding to this specific thing: the POSIX shell spec doesn't
include any form of brace expansion.  ksh93 (-2008) does recognize
both {a,b,c} and {1..10}, but NetBSD /bin/sh and /bin/ksh don't.
The `seq` utility is not portable either.

zw