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-
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
> >
>
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
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
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