[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: bug in LINENO in busybox 1.29.3
From:       daggs <daggs () gmx ! com>
Date:       2018-11-28 13:28:29
Message-ID: trinity-4c097c98-14ed-42c9-a3b1-1f58fbedba36-1543411709506 () 3c-app-mailcom-bs05
[Download RAW message or body]

Greetings Tito,

> Sent: Wednesday, November 28, 2018 at 3:25 PM
> From: Tito <farmatito@tiscali.it>
> To: busybox@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@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
> 

yeah, I noticed that I've miswrote the expected output, you were quicker than me :)
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic