Greetings Denys,

> Sent: Saturday, January 27, 2018 at 9:03 PM
> From: "Denys Vlasenko" <vda.li...@googlemail.com>
> To: daggs <da...@gmx.com>
> Cc: busybox <busybox@busybox.net>
> Subject: Re: adding lineno implementation
>
> On Wed, Jan 24, 2018 at 9:53 AM, daggs <da...@gmx.com> wrote:
> >> >> Implemented in git a bit differently
> >> >>
> >> >
> >> > not sure I follow, is there an existing implementation for busybox?
> >>
> >> I applied an implementation to busybox git, please "git pull" and take a 
> >> look.
> >
> > I see, you've committed support for lineno for ash, I'm using hush for bash 
> > emulation
> 
> BTW, I would like to know where hush finds its uses.
> What are you using it for (what project)?
> 

I've tested the implementation on 1.28.0 with the two following patches:
https://git.busybox.net/busybox/commit/shell/hush.c?id=b8d076b00bad9da87e6dcaf4f36dfd06e2d2e5e8
https://git.busybox.net/busybox/commit/shell/hush.c?id=6aad1ddcc9d8fe2303cc444b6ddea2af1fc1dd30
on the test script I've posted in the first mail and the output is as follows:
$ ./busybox hush test.sh 
hush: using fallback suid method
at line 5
at line 6
at line 6
at line 6
at line 6
at line 6
at line 6
at line 6
at line 6
at line 6
at line 6
at line 10
hello world 10

that differs from the bash output, the line that is printed most is actually in 
line 7 and not 6.
I think this implementation suffers from a similar but my implementation 
suffered.

Dagg.
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to