Re: Bug concatenating member of large array with string

2021-08-10 Thread Andreas Schwab
On Aug 10 2021, Joe Pater wrote: > The attached bash script (named 'test'), when run on my laptop, > produces the following output: > > xyzerg That's because the value of ${words[0]} ends with a CR. You can see that if you pipe the output to `cat -A'. Andreas. -- Andreas Schwab, sch...@linux-

Re: Bug concatenating member of large array with string

2021-08-10 Thread Joe Pater
Ah yes, thanks. On Tue, Aug 10, 2021 at 05:11:44PM +0300, Oğuz wrote: > 10 Ağustos 2021 Salı tarihinde Joe Pater yazdı: > > > The attached bash script (named 'test'), when run on my laptop, > > produces the following output: > > > > xyzerg > > > > Instead of the expected: > > > > Aabergxyz > > >

Re: Bug concatenating member of large array with string

2021-08-10 Thread Oğuz
10 Ağustos 2021 Salı tarihinde Joe Pater yazdı: > The attached bash script (named 'test'), when run on my laptop, > produces the following output: > > xyzerg > > Instead of the expected: > > Aabergxyz > > I don't think this error occurs on my PC (I can't test it at the > moment as I am away), but

Re: Bug concatenating member of large array with string

2021-08-10 Thread Kerin Millar
On Tue, 10 Aug 2021 14:26:56 +0100 Joe Pater wrote: > The attached bash script (named 'test'), when run on my laptop, > produces the following output: > > xyzerg > > Instead of the expected: > > Aabergxyz Try piping your script to "od -An -t x1 -c" and also taking a look at https://mywiki.wo

Re: Bug concatenating member of large array with string

2021-08-10 Thread Greg Wooledge
On Tue, Aug 10, 2021 at 02:26:56PM +0100, Joe Pater wrote: > The attached bash script (named 'test'), when run on my laptop, > produces the following output: > > xyzerg > > Instead of the expected: > > Aabergxyz OK, let's see if we can reproduce that. My initial thought is carriage return pois