bug in LINENO in busybox 1.29.3
daggs
daggs at gmx.com
Wed Nov 28 13:28:29 UTC 2018
Greetings Tito,
> Sent: Wednesday, November 28, 2018 at 3:25 PM
> From: Tito <farmatito at tiscali.it>
> To: busybox at busybox.net
> Subject: Re: bug in LINENO in busybox 1.29.3
>
>
> On 28/11/18 14:12, daggs wrote:
> > Greetings,
> >
> > I've encountered a strange bug in busybox 1.29.3 when using the LINENO var, the reproduction is simple, see the below bash file:
> > #!/bin/bash
> >
> > TEST="aaaa"
> > # comment
> > echo "${LINENO} TEST=${TEST}"
> >
> > this should print "4 TEST=aaaa" instead of "5 TEST=aaaa"
> >
> > Dagg.
> >
>
> Hi,
> with bash version 4.4.12(1)-release (x86_64-pc-linux-gnu)
> it prints:
>
> ./test.sh
> 5 TEST=aaaa
>
> so it seems not to be a bug. Why do you think it is wrong?
>
> 1 #!/bin/bash
> 2
> 3 TEST="aaaa"
> 4 # comment
> 5 echo "${LINENO} TEST=${TEST}"
>
>
> Ciao,
> Tito
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
>
yeah, I noticed that I've miswrote the expected output, you were quicker than me :)
More information about the busybox
mailing list