Re: [PATCH] shell script error management in ash (set of 6 patches)

2021-08-20 Thread Roberto A. Foglietta
Il giorno ven 20 ago 2021 alle ore 18:46 Roberto A. Foglietta < roberto.foglie...@gmail.com> ha scritto: > Il giorno ven 20 ago 2021 alle ore 17:49 Harald van Dijk < > har...@gigawatt.nl> ha scritto: > >> On 20/08/2021 16:31, Roberto A. Foglietta wrote: >> > Il giorno ven 20 ago 2021 alle ore

Re: six patches from tinycore linux

2021-08-20 Thread Denys Vlasenko
On Tue, Aug 10, 2021 at 3:02 PM Roberto A. Foglietta wrote: > > Hi all, > > At this address you can find six patches used by tinycore linux. > It might be possible that they have been submitted here yet, or not. > Otherwise, it worths to be evaluated > >

Re: [PATCH] shell script error management in ash (set of 6 patches)

2021-08-20 Thread Harald van Dijk
On 20/08/2021 16:31, Roberto A. Foglietta wrote: Il giorno ven 20 ago 2021 alle ore 16:36 Harald van Dijk mailto:har...@gigawatt.nl>> ha scritto:    cat >shrc

Re: [PATCH] shell script error management in ash (set of 6 patches)

2021-08-20 Thread Harald van Dijk
On 20/08/2021 15:14, Roberto A. Foglietta wrote: Il giorno ven 20 ago 2021 alle ore 15:21 Harald van Dijk mailto:har...@gigawatt.nl>> ha scritto: Hi, Please note the "when an outer context has already set LINENO" qualification :) busybox does have one call to evalstring() when no

Re: [PATCH] shell script error management in ash (set of 6 patches)

2021-08-20 Thread Harald van Dijk
On 20/08/2021 13:48, Roberto A. Foglietta wrote: Il giorno ven 20 ago 2021 alle ore 14:05 Harald van Dijk mailto:har...@gigawatt.nl>> ha scritto: Hi, Replying to the new thread as requested. About the global LINENO: having thought about it more, I don't think it makes sense

Re: [PATCH] shell script error management in ash (set of 6 patches)

2021-08-20 Thread Roberto A. Foglietta
Il giorno ven 20 ago 2021 alle ore 17:49 Harald van Dijk ha scritto: > On 20/08/2021 16:31, Roberto A. Foglietta wrote: > > Il giorno ven 20 ago 2021 alle ore 16:36 Harald van Dijk > > mailto:har...@gigawatt.nl>> ha scritto: > > > > > > cat >shrc < > : > > : > > :

Re: [PATCH] shell script error management in ash (set of 6 patches)

2021-08-20 Thread Harald van Dijk
Hi, Replying to the new thread as requested. About the global LINENO: having thought about it more, I don't think it makes sense to special-case trap actions. This is something that should be done for all evalstring() calls that are performed when an outer context has already set LINENO. In

Re: [PATCH] shell script error management in ash (set of 6 patches)

2021-08-20 Thread Roberto A. Foglietta
Il giorno ven 20 ago 2021 alle ore 16:36 Harald van Dijk ha scritto: > >cat >shrc <: >: >: >EOF >ENV=shrc ./busybox ash -ic 'echo LINENO=$LINENO' >3 > > I can understand (and would > personally prefer) outputting 1 / 2 for the first case and 1 for the > second case.

Re: [PATCH] shell script error management in ash (set of 6 patches)

2021-08-20 Thread Roberto A. Foglietta
Il giorno ven 20 ago 2021 alle ore 15:21 Harald van Dijk ha scritto: > On 20/08/2021 13:48, Roberto A. Foglietta wrote: > > > > Il giorno ven 20 ago 2021 alle ore 14:05 Harald van Dijk > > mailto:har...@gigawatt.nl>> ha scritto: > > > > Hi, > > > > Replying to the new thread as

Re: [PATCH 0/2] vi: initialisation commands

2021-08-20 Thread Denys Vlasenko
Applied, thank you On Thu, Aug 19, 2021 at 5:59 PM Ron Yorston wrote: > > Here are some modifications to how BusyBox vi handles initialisation > commands: -c, EXINIT and .exrc. > > Ron > ___ > busybox mailing list > busybox@busybox.net >

Re: [PATCH] vi: don't right shift empty lines

2021-08-20 Thread Denys Vlasenko
Applied, thank you On Fri, Aug 20, 2021 at 9:25 AM Ron Yorston wrote: > > The right shift command ('>') shouldn't affect empty lines. > > function old new delta > do_cmd 48604894 +34 >

Re: [PATCH] shell script error management in ash (set of 6 patches)

2021-08-20 Thread Roberto A. Foglietta
Il giorno ven 20 ago 2021 alle ore 14:05 Harald van Dijk ha scritto: > Hi, > > Replying to the new thread as requested. > > About the global LINENO: having thought about it more, I don't think it > makes sense to special-case trap actions. This is something that should > be done for all

[PATCH] vi: don't right shift empty lines

2021-08-20 Thread Ron Yorston
The right shift command ('>') shouldn't affect empty lines. function old new delta do_cmd 48604894 +34 -- (add/remove: