bug in LINENO in busybox 1.29.3

daggs daggs at gmx.com
Wed Nov 28 13:18:47 UTC 2018


> Sent: Wednesday, November 28, 2018 at 3:12 PM
> From: daggs <daggs at gmx.com>
> To: busybox at busybox.net
> Subject: bug in LINENO in busybox 1.29.3
>
> 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.
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
> 

correcting the list: this prints "4 TEST=aaaa" instead of "5 TEST=aaaa"


More information about the busybox mailing list