From: Ramsay Jones Date: Sat, 07 May 2016 13:43:51 GMT Subject: Re: t6044 broken on pu Message-ID: <572DF117.8060400@ramsayjones.plus.com> In-Reply-To: <572DEA81.4050605@ramsayjones.plus.com> On 07/05/16 14:15, Ramsay Jones wrote: > > > On 07/05/16 13:19, Andreas Schwab wrote: >> Torsten Bögershausen writes: >> >>> The "seq" is not understood by all shells, >>> using printf fixes this, >>> >>> index 20a3ffe..48d964e 100755 >>> --- a/t/t6044-merge-unrelated-index-changes.sh >>> +++ b/t/t6044-merge-unrelated-index-changes.sh >>> @@ -20,7 +20,7 @@ test_description="merges with unrelated index changes" >>> # Commit E: renames a->subdir/a, adds subdir/e >>> >>> test_expect_success 'setup trivial merges' ' >>> - seq 1 10 >a && >>> + printf 1 2 3 4 5 7 8 9 10 >a && >> >> $ printf 1 2 3 4 5 7 8 9 10 >> 1 > > yep, I think: > > printf "%d\n" 1 2 3 4 5 6 7 8 9 10 >a && > > would be equivalent. > Having said that, there is also 'test_seq' which you can use to avoid portability problems (although it uses perl, so could be viewed as a bit heavyweight): test_seq 1 10 >a && ATB, Ramsay Jones